@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  
}

@font-face {
  font-family: Vazirmatn;
  src: url('../webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    font-size: 1rem;
    text-align: right;
    border-radius: 10px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    background: #00e676;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 1.1rem;
}

.submit-btn:hover {
    background: #00c853;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    padding: 1rem 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 200px;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #f09433 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(220, 39, 67, 0.4);
}

.telegram-btn {
    background: #0088cc;
    color: white;
    border: none;
}

.telegram-btn:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* RTL specific adjustments */
.form-control, 
.btn, 
.description,
.brand-name {
    direction: rtl;
    text-align: right;
}

/* Thank you page specific styles */
.thank-you-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Table styles */
.data-table {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
    min-width: 800px;
}

.data-table thead th {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: right;
    white-space: nowrap;
}

.data-table tbody td {
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 1);
}

/* Stats card styles */
.stats-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    color: white;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffeb3b;
}

/* Search box styles */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #000;
    margin-bottom: 1rem;
}

.search-box::placeholder {
    color: #666;
}

/* Checkbox styles */
.custom-checkbox {
    width: 20px;
    height: 20px;
    position: relative;
    margin: 0 auto;
    display: block;
}

.custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    z-index: 2;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #1976d2;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #1976d2;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 3px;
    color: white;
    font-size: 14px;
}

.custom-checkbox:hover .checkmark {
    border-color: #1565c0;
}

/* Status badge */
.status-badge {
    background: #1976d2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    opacity: 0.9;
}

/* Checked row styles */
.checked-row td {
    background: rgba(25, 118, 210, 0.1) !important;
	    color: #c7c7c7 !important
}

.checked-row:hover td {
    background: rgba(25, 118, 210, 0.15) !important;
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .data-table {
        margin-top: 1rem;
    }
    
    .stats-card {
        margin-bottom: 0.5rem;
    }
    
    .search-box {
        margin-bottom: 0.5rem;
    }
}

/* Hide scrollbar but keep scrolling functionality */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ensure table parent container is full width */
.data-table {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
    min-width: 800px;
    width: 100%; /* Added to ensure full width */
}

/* Add visual indicator for mobile users */
@media (max-width: 768px) {
    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
        pointer-events: none;
    }
}


/* Note button and modal styles */
.note-btn {
    background: transparent;
    border: 1px solid #1976d2;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-btn:hover {
    background: rgba(25, 118, 210, 0.1);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(25, 118, 210, 0.1);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.note-textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
    min-height: 150px;
    width: 100%;
    direction: rtl;
}

.note-btn {
    background: transparent;
    border: none;
    color: #362080; /* Gray color for no notes */
    padding: 8px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-btn:hover {
    background: rgba(25, 118, 210, 0.1);
    transform: scale(1.1);
}


.note-btn.has-note {
    color: #1976d2; /* Blue color when note exists */
}

.note-btn:hover {
    background: rgba(25, 118, 210, 0.1);
    transform: scale(1.1);
}

/* For checked rows, keep the gray color */
.checked-row .note-btn,
.checked-row .note-btn.has-note {
    color: #FFEB3B;
}

.filter-buttons {
    margin-bottom: 1rem;
}

.filter-buttons .btn {
    flex: 1;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
}

.filter-buttons .btn:first-child {
    margin-right: 0;
}

.filter-buttons .btn:last-child {
    margin-left: 0;
}

.filter-buttons .btn.active {
    background: #1976d2;
    border-color: #1976d2;
    color: white;
}

@media (max-width: 768px) {
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .filter-buttons .btn {
        flex: 1 0 calc(50% - 0.4rem);
        margin: 0.2rem;
    }
}


@media (min-width: 768px) {
    /* Admin Configuration Form Improvements */
    .admin-config-form .row-fields {
        display: flex;
        gap: 1rem;
    }

    .admin-config-form .row-fields > div {
        flex: 1;
    }

    .admin-config-form .mb-3 {
        margin-bottom: 1.5rem;
    }
}

.alert-custom {
            width: 100%;
            text-align: center;
            margin-bottom: 15px;
        }

@media (max-width: 767px) {
    .admin-config-form .row-fields {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .admin-config-form .row-fields > div {
        flex: 1;
        width: 100%;
    }

    .admin-config-form .mb-3 {
        margin-bottom: 1rem;
    }

    .admin-config-form .form-label {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    /* Desktop Admin Configuration Form Improvements */
    .admin-config-form .row-fields {
        display: flex;
        gap: 1rem;
    }

    .admin-config-form .row-fields > div {
        flex: 1;
    }

    .admin-config-form .mb-3 {
        margin-bottom: 1.5rem;
    }
}