﻿
        body {
            font-family: 'Vazirmatn', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #f4f4f4, #e0e7ff);
            direction: rtl;
        }
        .container {
            display: flex;
            flex-direction: row-reverse;
            height: 100vh;
        }
        .video-section {
            flex: 1;
            background-color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .video-section iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        .elements-section {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            background: linear-gradient(180deg, #ffffff, #f0f4ff);
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            text-align: right;
        }
        .elements-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }
        .element-item {
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .element-item input[type="checkbox"] {
            display: none;
        }
        .element-item label {
            display: flex;
            align-items: center;
            padding: 10px;
            background: #e9e9e9;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
            width: 100%;
            box-sizing: border-box;
        }
        .element-item input:checked + label {
            background: #d4f4d4;
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
        }
        .element-item label::before {
            /*content: '✨';*/
            margin-left: 10px;
        }
        #custom-input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
            width: 100%;
            text-align: right;
            box-sizing: border-box;
        }
        #total {
            font-weight: bold;
            font-size: 24px;
            color: #1e40af;
            transition: all 0.3s;
        }
        .button-group {
          align-content:center;
           align-items:center;
            gap: 10px;
            min-width:250px;
        }
        #clear, #pay {
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s;
        }
        #clear {
            background: linear-gradient(45deg, #f44336, #e11d48);
          font-size:16px;font-weight:600;
        }
        #clear:hover {
            background: linear-gradient(45deg, #d32f2f, #be123c);
        }
        #clear:active {
            animation: shake 0.3s;
        }
        #pay {
            background: linear-gradient(45deg, #10b981, #34d399);
            font-size:16px;font-weight:600;
        }
        #pay:hover {
            background: linear-gradient(45deg, #059669, #10b981);
        }
        #pay:active {
            animation: shake 0.3s;
        }
        @keyframes shake {
            0% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            50% { transform: translateX(5px); }
            75% { transform: translateX(-5px); }
            100% { transform: translateX(0); }
        }


       .header-container {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        .navbar-brand img {
            width: 130px;
            height: 70px;
            border-radius: 20px;
            animation: fadeIn 1s ease-out;
        }
        .header {
             font-family: 'Vazirmatn', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            background: linear-gradient(45deg, #1e40af, #3b82f6);
            padding: 15px 20px;
            border-radius: 10px;
            animation: fadeIn 1s ease-out;
            text-align: center;
            flex-grow: 1;
        }