    @font-face {
        font-family: 'vazir';
        font-style: normal;
        font-weight: 400;
        font-display: swap;

        src: url('../fonts/vazir/Vazir.woff2') format('woff2'),
        url('../fonts/vazir/Vazir.ttf') format('truetype'),
        url('../fonts/vazir/Vazir.eot') format('embedded-opentype');
    }
    :root {
        --font-primary: 'Vazir', system-ui, -apple-system, sans-serif;
    }

    html {
        font-size: 100%;
        direction: rtl;
    }



    body {
            font-family: var(--font-primary);

            font-weight: 400;
        box-sizing: border-box;
    }

    .gradient-hero {
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    }

    .card-hover {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
    }

    .nav-link {
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        right: 0;
        width: 0;
        height: 2px;
        background: #fbbf24;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .search-input:focus {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    }

    .btn-primary {
        background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
        transition: all 0.3s ease;
    }

    .btn-primary:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    }

    .sidebar-item {
        transition: all 0.2s ease;
    }

    .sidebar-item:hover {
        background: rgba(59, 130, 246, 0.1);
        padding-right: 1.5rem;
    }

    .search-results {
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .floating-shape {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-20px);
        }
    }

    .order-card {
        transition: all 0.3s ease;
    }

    .order-card:hover {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    }

    .status-badge {
        display: inline-block;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .status-not_started {
        background: #fee2e2;
        color: #991b1b;
    }

    .status-started {
        background: #fef3c7;
        color: #92400e;
    }

    .status-finished {
        background: #dcfce7;
        color: #15803d;
    }

    .modal-overlay {
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .modal-content {
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    .colored-toast.swal2-icon-success {
        background-color: #28a745 !important;
    }

    .colored-toast.swal2-icon-error {
        background-color: #dc3545 !important;
    }

    .colored-toast.swal2-icon-warning {
        background-color: #ffc107 !important;
    }

    .colored-toast.swal2-icon-info {
        background-color: #17a2b5 !important;
    }

    .colored-toast.swal2-icon-question {
        background-color: #6c757d !important;
    }

    .colored-toast .swal2-title {
        color: white !important;
    }

    .colored-toast .swal2-close {
        color: white !important;
    }

    .colored-toast .swal2-html-container {
        color: white !important;
    }
    .card-shadow-static {
        box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.25);
    }
    .hover-lift:hover {
        transform: translateY(-4px);
        transition: transform 0.2s ease;
    }
    .status-pulse {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
        animation: pulse-green 2s infinite;
    }
    @keyframes pulse-green {
        0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
        70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
        100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    }
    .persian-number {
        font-feature-settings: "ss01";
    }



     .smooth-scroll {
         -webkit-overflow-scrolling: touch;
     }

    .exam-card {
        transition: all 0.2s ease;
        border: 1px solid #e9eef2;
        background: white;
        border-radius: 1.25rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }

    .exam-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    }

    #sidebar-checkbox {
        display: none;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1100;
        transition: right 0.25s ease;
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.12);
    }

    #sidebar-checkbox:checked ~ .mobile-sidebar {
        right: 0;
    }

    #sidebar-checkbox:checked ~ .sidebar-overlay {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1050;
        display: none;
        backdrop-filter: blur(3px);
    }

    .filter-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 28px 28px 0 0;
        padding: 1.5rem;
        z-index: 1200;
        transform: translateY(100%);
        transition: transform 0.25s;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    }

    #filter-toggle:checked ~ .filter-drawer {
        transform: translateY(0);
    }

    #filter-toggle {
        display: none;
    }

    .filter-overlay {
        display: none;
    }

    #filter-toggle:checked ~ .filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1150;
    }

    .modal-mobile {
        position: fixed;
        inset: 0;
        background: white;
        z-index: 2000;
        overflow-y: auto;
        display: none;
    }




    .badge {
        @apply inline-flex items-center gap-1 px-3 py-1.5 text-xs rounded-full font-medium;
    }

    .badge-success {
        @apply bg-emerald-100 text-emerald-800;
    }

    .badge-warning {
        @apply bg-amber-100 text-amber-800;
    }

    .badge-danger {
        @apply bg-rose-100 text-rose-800;
    }

    .badge-info {
        @apply bg-blue-100 text-blue-800;
    }

    .badge-purple {
        @apply bg-purple-100 text-purple-800;
    }

    .badge-gray {
        @apply bg-gray-100 text-gray-700;
    }

    .search-mobile {
        display: none;
    }

    @media (max-width: 640px) {
        .search-desktop {
            display: none;
        }

        .search-mobile {
            display: block;
        }
    }

    @media (min-width: 641px) {
        .mobile-only {
            display: none;
        }
    }

    .digits {
        font-feature-settings: "ss02";
    }

    .action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        border-radius: 0.9rem;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.15s ease;
        white-space: nowrap;
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        width: 100%;
    }

    @media (min-width: 640px) {
        .action-btn {
            width: auto;
        }
    }

    .btn-primary {
        background: #2563eb;
        color: white;
    }

    .btn-primary:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    }

    .btn-warning {
        background: #f59e0b;
        color: white;
    }

    .btn-warning:hover {
        background: #d97706;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
    }

    .btn-success {
        background: #10b981;
        color: white;
    }

    .btn-success:hover {
        background: #059669;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
    }

    .btn-info {
        background: #6366f1;
        color: white;
    }

    .btn-info:hover {
        background: #4f46e5;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(99, 102, 241, 0.25);
    }

    .btn-outline {
        background: #f1f5f9;
        color: #334155;
        border: 1px solid #e2e8f0;
    }

    .btn-outline:hover {
        background: #e2e8f0;
        transform: translateY(-1px);
    }

    .action-btn.disabled, .action-btn:disabled {
        opacity: 0.4;
        pointer-events: none;
        box-shadow: none;
    }

    .finance-box {
        background: linear-gradient(145deg, #f8fafc, #f1f5f9);
        border-radius: 1rem;
        padding: 1rem;
    }

    .modal-header {
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
    }


    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }




    /* ===== Layout ===== */
    .profile-container {
        max-width: 820px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    /* ===== Header ===== */
    .profile-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    .profile-header h1 {
        font-size: 1.85rem;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 0.5rem;
    }
    .profile-header p {
        color: #60758f;
        font-size: 0.95rem;
    }

    /* ===== Form Container (flat, no card) ===== */
    .form-container {
        background: transparent;
        padding: 0;
    }

    /* ===== Sections ===== */
    .form-section {
        margin-bottom: 2.25rem;
        padding-bottom: 2.25rem;
        border-bottom: 2px solid #dbeafe;
    }
    .form-section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    .section-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 1.05rem;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 1.4rem;
    }
    .section-title i {
        color: #2563eb;
        font-size: 1.15rem;
    }

    /* ===== Form Grid ===== */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .form-group {
        display: flex;
        flex-direction: column;
    }
    .form-group.full-width {
        grid-column: 1 / -1;
    }

    /* ===== Labels ===== */
    .form-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: 0.4rem;
    }
    .form-label.required::after {
        content: ' *';
        color: #ef4444;
    }

    /* ===== Inputs ===== */
    .form-input,
    .form-select {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        color: #0f172a;
        background: #ffffff;
        border: 2px solid #bfdbfe;
        border-radius: 0.6rem;
        transition: all 0.2s ease;
        font-family: inherit;
    }
    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: #2563eb;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }
    .form-input.error,
    .form-select.error {
        border-color: #ef4444;
        background: #fef2f2;
    }
    .form-input::placeholder {
        color: #94a3b8;
    }
    .form-input:disabled,
    .form-select:disabled {
        background: #f1f5f9;
        cursor: not-allowed;
        opacity: 0.6;
    }

    /* ===== Select Wrapper ===== */
    .select-wrapper {
        position: relative;
    }
    .select-wrapper .form-select {
        appearance: none;
        -webkit-appearance: none;
        padding-left: 2.5rem;
        cursor: pointer;
    }
    .select-wrapper .select-icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #60a5fa;
        pointer-events: none;
        font-size: 0.85rem;
    }

    /* ===== Help Text ===== */
    .field-hint {
        font-size: 0.75rem;
        color: #93a3b8;
        margin-top: 0.35rem;
    }

    /* ===== Error Message ===== */
    .field-error {
        font-size: 0.8rem;
        color: #ef4444;
        margin-top: 0.35rem;
    }

    /* ===== Alert Messages ===== */
    .alert-success,
    .alert-error {
        padding: 0.9rem 1.25rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.95rem;
    }
    .alert-success {
        background: #eff6ff;
        border-right: 4px solid #2563eb;
        color: #1e3a8a;
    }
    .alert-success i {
        color: #2563eb;
        margin-top: 0.15rem;
    }
    .alert-error {
        background: #fef2f2;
        border-right: 4px solid #ef4444;
        color: #991b1b;
    }
    .alert-error i {
        color: #ef4444;
        margin-top: 0.15rem;
    }
    .alert-error ul {
        margin-top: 0.3rem;
        padding-right: 1.2rem;
        list-style: disc;
    }
    .alert-error ul li {
        font-size: 0.85rem;
    }



    .btn-secondary {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: #60758f;
        font-size: 0.9rem;
        transition: color 0.2s;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
    }
    .btn-secondary:hover {
        color: #1e3a8a;
    }

    .form-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 2px solid #dbeafe;
    }

    /* ===== Footer ===== */
    .profile-footer {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.8rem;
        color: #93a3b8;
    }

    /* ===== Responsive ===== */
    @media (max-width: 768px) {
        .form-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        .form-group.full-width {
            grid-column: 1;
        }
        .profile-header h1 {
            font-size: 1.4rem;
        }
        .form-actions {
            flex-direction: column-reverse;
            gap: 1rem;
        }

        .form-section {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .profile-container {
            padding: 1rem 0.75rem;
        }
        .form-input,
        .form-select {
            padding: 0.65rem 0.9rem;
            font-size: 0.9rem;
        }
        .section-title {
            font-size: 0.9rem;
        }
    }
