      /* Accessibility: Respect user's motion preferences */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
        :root {
            --primary-teal: #2D8B8B;
            --secondary-blue: #1E5A96;
            --accent-orange: #F5A623;
            --light-teal: #E8F4F4;
            --white: #FFFFFF;
            --dark-text: #333333;
            --light-gray: #F8F9FA;
            --border-color: #E0E6ED;
            --success-green: #28A745;
            --shadow: 0 2px 15px rgba(45, 139, 139, 0.1);
            --shadow-hover: 0 4px 25px rgba(45, 139, 139, 0.15);
            --dark-bg: #2C3E50;
            --target-bg:#fef7e7;
            --focus-color: #005fcc;
            --focus-outline: 3px solid var(--focus-color);
        }

        /* Accessibility: Screen Reader Only Text */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Accessibility: Skip Navigation Link */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 6px;
            background: var(--focus-color);
            color: white;
            padding: 8px;
            text-decoration: none;
            border-radius: 4px;
            z-index: 10000;
            font-weight: bold;
        }

        .skip-link:focus {
            top: 6px;
        }

        /* Accessibility: Enhanced Focus Styles */
        *:focus {
            outline: var(--focus-outline);
            outline-offset: 2px;
        }

        a:focus,
        button:focus {
            outline: var(--focus-outline);
            outline-offset: 2px;
        }

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
            background: linear-gradient(135deg, var(--light-teal) 0%, var(--white) 100%);
            color: var(--dark-text);
            line-height: 1.6;
            direction: rtl;
            min-height: 100vh;
        }

        /* Header */
        .top-header {
            background: var(--target-bg);
            padding: 0;
            box-shadow: var(--target-bg);
            height: 123px;
            position: relative;
            z-index: 1000;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 20px;
            height: 123px;
            position: relative;
        }

        .header-links {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            padding-top: 10px;
        }

        .header-links a {
            color: var(--dark-text);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 4px;
        }
        .header-links a:hover,
        .header-links a:focus {
            color: var(--primary-teal);
            background: rgba(45, 139, 139, 0.1);
        }
        .header-links a.whatsapp::before {
            content: '';
            width: 16px;
            height: 16px;
            background: url('whats.png') no-repeat center;
            background-size: 16px 16px;
            display: inline-block;
            margin-left: 8px;
            vertical-align: middle;
        }
        .header-links a.contact::before { content: '✉️'; }
        .header-links a.newspaper::before { content: '📰'; }
        .header-links a.homepage::before { content: '🏠'; }
        .header-links a.registration::before { content: '📝'; }
        .header-links a.login::before { content: '🔐'; }
        .header-links a.profile::before { content: '👤'; }
        .header-links a.signout::before { content: '🚪'; }
         span.welcome::before { content: '👋'; }
        .header-links a.active {
            background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-blue) 100%);
            color: var(--white) !important;
            border-radius: 8px;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(45, 139, 139, 0.3);
            transform: translateY(-2px);
        }
        .header-links a.active::after {
            content: '⭐';
            margin-right: 5px;
            font-size: 12px;            
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 20px;
            height: 120px;
        }

        .school-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 120px;
        }

        .logo {
            width: 120px;
            height: 120px;
            background: transparent;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;            
            position: relative;
            overflow: hidden;
            padding: 10px;
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 10px;
        }

        .school-info h1 {
            color: var(--dark-text);
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .school-info p {
            color: #666;
            font-size: 16px;
            background: linear-gradient(45deg, #2D8B8B, #F5A623, #1E5A96, #2D8B8B);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: magicGradient 3s ease-in-out infinite, sparkle 2s ease-in-out infinite;
            font-weight: 600;
            text-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
            position: relative;
            letter-spacing: 0.5px;
            width: auto;
        }

        .school-info p::before {
            content: '✨';
            position: absolute;
            left: -25px;
            top: 50%;
            transform: translateY(-50%);
            animation: sparkleRotate 2s linear infinite;
            font-size: 14px;
        }

        .school-info p::after {
            content: '✨';
            position: absolute;
            right: -25px;
            top: 50%;
            transform: translateY(-50%);
            animation: sparkleRotate 2s linear infinite reverse;
            font-size: 14px;
        }

        @keyframes magicGradient {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes sparkle {
            0%, 100% {
                text-shadow: 0 0 10px rgba(245, 166, 35, 0.3), 0 0 20px rgba(45, 139, 139, 0.2);
            }
            50% {
                text-shadow: 0 0 20px rgba(245, 166, 35, 0.6), 0 0 30px rgba(45, 139, 139, 0.4), 0 0 40px rgba(30, 90, 150, 0.3);
            }
        }

        @keyframes sparkleRotate {
            0% { transform: translateY(-50%) rotate(0deg) scale(1); opacity: 0.7; }
            50% { transform: translateY(-50%) rotate(180deg) scale(1.2); opacity: 1; }
            100% { transform: translateY(-50%) rotate(360deg) scale(1); opacity: 0.7; }
        }

        /* ========== NAVIGATION SECTION (from temp.html) ========== */
        
        /* Navigation Section */
        .nav-section {
            background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-teal) 100%);
            padding: 0;
            position: sticky;
            top: 0;
            min-height: 60px;
            z-index: 999;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 40px;
            padding: 0 20px;
            transition: all 0.3s ease;
        }

        .nav-item {
            color: var(--white);
            text-decoration: none;
            padding: 20px 30px;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            border-radius: 4px;
        }

        .nav-item:hover,
        .nav-item:focus {
            background: rgba(255, 255, 255, 0.1);
            color: var(--accent-orange);
            transform: translateY(-2px);
        }
        .nav-item.homepage::before { content: '⌂' }
        .nav-item.instant-tests::before { content: '📋' }
        .nav-item.worksheets::before { content: '📄' }        
        .nav-item.recorded-lessons::before { content: '📹' }
        .nav-item.live-lessons::before { content: '🔴' }
        .nav-item.contact::before { content: '✉️' }
        nav-item.active {
            background: var(--accent-orange) !important;
            color: var(--white) !important;
            font-weight: bold;
            border-radius: 25px;
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
            position: relative;
        }
        .nav-item.active {
        border-bottom: 4px solid var(--accent-orange);
       }
             /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: var(--white);
            font-size: 22px;
            cursor: pointer;
            padding: 12px 15px;
            border-radius: 8px;
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .mobile-menu-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.5);
        }

        /* Sidebar Mobile Toggle */
       .sidebar-mobile-toggle {
            display: none;
            background: var(--accent-orange);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: var(--white);
            font-size: 18px;
            cursor: pointer;
            padding: 12px 15px;
            border-radius: 8px;
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .sidebar-mobile-toggle:hover {
            background: #E8950F;
            border-color: rgba(255, 255, 255, 0.5);
        }

        /* Language Toggle */
        .language-toggle {
            position: absolute;
            top: 10px !important;
            left: 20px !important;
            background: var(--accent-orange);
            color: var(--white);
            border: none;
            padding: 10px 15px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            font-size: 12px;
            z-index: 1002;
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
            opacity: 0;
            animation: fadeInButton 0.3s ease-out 0.1s forwards;
            visibility: hidden;
            display: none;
        }
       @media (max-width: 1294px) {
            .language-toggle {
                top: 70px!important;                
            }
        }
        @media (max-width: 858px) {
            .language-toggle {
                top: 10px!important;                
            }
        }
        @keyframes fadeInButton {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .language-toggle:hover {
            background: #E8950F;
            transform: translateY(-2px);
        }
        /* Main Layout */
        .main-layout {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr 200px;
            gap: 30px;
            direction: ltr;
        }

        /* Content Area */
        .content-area {
            background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-teal) 100%);
            border-radius: 15px;
            box-shadow: var(--shadow);
            overflow: hidden;
            min-height: 400px;
            display: flex;
            align-items: flex-start;  /* Changed from center */
            justify-content: center;
            position: relative;
        }

        .content-placeholder {
            text-align: center;
            color: var(--white);
            padding: 15px;    /* Reduced from 20px */
            max-width: 1000px;
            width: 100%;
            margin: 0 auto;
        }

        .content-placeholder h2 {
            font-size: 32px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .content-placeholder p {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .search-form {
            background: var(--white);
            padding: 15px;
            border-radius: 25px;
            display: flex;
            gap: 10px;
            max-width: 400px;
            margin: 0 auto;
            box-shadow: var(--shadow);
            direction: rtl;
        }

        .search-input {
            flex: 1;
            border: none;
            padding: 12px 15px;
            border-radius: 20px;
            font-size: 14px;
            outline: none;
            background: var(--light-gray);
        }

        .search-btn {
            background: var(--accent-orange);
            color: var(--white);
            border: none;
            padding: 12px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            background: #E8950F;
            transform: translateY(-2px);
        }

        /* ========== SIDEBAR STYLES (Enhanced from indexwithtogglebutton.html) ========== */
        
        /* Sidebar */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .sidebar-header {
            background: var(--dark-bg);
            color: var(--white);
            padding: 15px 20px;
            font-weight: bold;
            text-align: center;
            border-radius: 8px 8px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 16px;
        }

        .sidebar-header.main-menu::after { content: '🏠'; }
        .sidebar-header.students::after { content: '🎓'; }
        .sidebar-header.parents::after { content: '👨‍👩‍👧‍👦'; }
        .sidebar-header.content::after { content: '📚'; }
        .sidebar-menu {
            background: var(--dark-bg);
            border-radius: 0 0 8px 8px;
            overflow: hidden;
        }
        .menu-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            position: relative;
            direction: rtl;
        }

        .menu-item:hover {
            background: var(--accent-orange);
            transform: translateX(-5px);
        }

        .menu-item::before {
            content: '🔸';
            font-size: 12px;
            color: var(--accent-orange);
        }

        .menu-item:hover::before {
            color: var(--white);
        }
        .menu-item:last-child {
            border-bottom: none;
        }      

        /* Mobile Menu Overlay */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 998;
            backdrop-filter: blur(2px);
            cursor: pointer;
        }
        .mobile-menu-overlay.active {
            display: block;
        }
            @media (max-width: 1132px) and (min-width: 1025px) {
                .nav-container {
                    gap: 20px; /* Reduced from 40px */
                    padding: 0 15px; /* Reduced from 0 20px */
                }
                
                .nav-item {
                    padding: 15px 18px; /* Reduced from 20px 30px */
                    font-size: 14px; /* Reduced from 16px */
                    gap: 8px; /* Reduced from 10px */
                }
                
                .nav-section {
                    min-height: 50px; /* Reduced from 60px */
                }
            }
        /* Tablet Styles */
        @media (max-width: 1064px) {
            .main-layout {
                grid-template-columns: 1fr;
                gap: 20px;
            }
             .school-info h1 {
                font-size: 18px;
            }
            .nav-container {
                gap: 25px;
            }            
            .nav-item {
                padding: 18px 20px;
                font-size: 15px;
            }
        }

        @media (max-width: 900px) {
            .nav-container {
                gap: 15px;
            }
            
            .nav-item {
                padding: 15px 15px;
                font-size: 14px;
            }
        }
        /* Mobile Styles */
        @media (max-width: 516px) {
            .language-toggle {
                top: 60px!important;                
            }
        }
        @media (max-width: 858px) {
            /* Show mobile toggles */
            .mobile-menu-toggle,
            .sidebar-mobile-toggle {
                display: block !important;
            }            
            
            .nav-container {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                max-width: 350px;
                height: 100vh;
                background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-teal) 100%);
                flex-direction: column;
                gap: 0;
                padding: 60px 0 30px 0;
                margin: 0;
                box-shadow: 5px 0 20px rgba(0,0,0,0.1);
                z-index: 0;
                overflow-y: auto;
                overflow-x: hidden;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                align-items: stretch;
                justify-content: flex-start;
                display: none;
                scroll-behavior: smooth;
            }
            
            .nav-container.active {
                display: flex !important;
                transform: translateX(0);
                scroll-behavior: auto;
            }
            
            .nav-container.active::before {
                content: '';
                position: absolute;
                top: 50px;
                left: 0;
                right: 0;
                height: 10px;
                background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 100%);
                pointer-events: none;
                z-index: 1;
            }
            
            .nav-container.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 10px;
                background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
                pointer-events: none;
                z-index: 1;
            }
            
            /* Mobile Navigation Items */
            .nav-item {
                width: 100%;
                padding: 20px 25px;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                justify-content: flex-start;
                border-radius: 0;
                margin: 0;
                transform: none;
                font-size: 15px;
                min-height: 60px;
                display: flex;
                align-items: center;
                box-sizing: border-box;
                background: transparent;
                transition: all 0.3s ease;
            }
            
            .nav-item:first-child {
                border-top: 1px solid rgba(255,255,255,0.1);
            }
            
            .nav-item:last-child {
                border-bottom: none;
            }
            
            .nav-item:hover {
                transform: translateX(10px);
                background: rgba(255, 255, 255, 0.2);
            }
            
            .nav-item:active {
                background: var(--accent-orange);
            }
            
            /* ========== ENHANCED MOBILE SIDEBAR (from indexwithtogglebutton.html) ========== */
            
            /* Mobile Sidebar - Enhanced with all logic from indexwithtogglebutton.html */
            .sidebar {
                display: none;
                position: fixed;
                top: 0;
                right: 0;
                width: 100%;
                max-width: 350px;
                height: 100vh;
                background: var(--white);
                z-index: 1000;
                overflow-y: auto;
                overflow-x: hidden;
                padding: 20px 0 60px 0;
                transform: translateX(100%);
                transition: transform 0.3s ease;
                box-shadow: -5px 0 20px rgba(0,0,0,0.1);
                contain: none;
            }
            
            .sidebar.active {
                display: flex !important;
                flex-direction: column;
                transform: translateX(0);
            }
            
            /* Force all sidebar elements to display - Enhanced from indexwithtogglebutton.html */
            .sidebar > * {
                display: block !important;
                flex-shrink: 0;
            }
            
            .sidebar .sidebar-header {
                display: flex !important;
                border-radius: 0;
                margin: 10px 20px 3px 20px;
                border-radius: 8px 8px 0 0;
                flex-shrink: 0;
            }
            
            .sidebar .sidebar-menu {
                display: block !important;
                margin: 0 20px 25px 20px;
                border-radius: 0 0 8px 8px;
                flex-shrink: 0;
            }
            
            .sidebar .menu-item {
                display: flex !important;
                padding: 18px 20px;
                font-size: 15px;
                min-height: 50px;
                align-items: center;
                flex-shrink: 0;
                width: auto;
                box-sizing: border-box;
            }
            
            .sidebar .menu-item:hover {
                transform: translateX(-10px);
            }
            
            /* Header Mobile Adjustments */
            .top-header {
                height: auto;
                padding: 10px 0;
                left: 0px;
            }
            
            .header-container {
                flex-direction: column;
                gap: 20px;
                text-align: center;
                height: auto;
                padding: 0px;
                margin: 0px;
                top: 0px;
                left: 0px;
                align-items: center;
            }
            
            .header-links {                               
                gap: 20px;
                flex-wrap: wrap;
                justify-content: center;
                height: auto;
                padding-top: 0;
            }
            
            .logo-section {
                height: auto;
            }
            
            .school-info {
                height: auto;
            }
            
            .logo {
                width: 80px;
                height: 80px;
                padding: 8px;
            }
            
            .school-info h1 {
                font-size: 24px;
            }
            
            .content-placeholder h2 {
                font-size: 24px;
            }
            
            .content-placeholder p {
                font-size: 16px;
            }
            
            .search-form {
                flex-direction: column;
                gap: 10px;
            }
        }

        /* Small Mobile */
        @media (max-width: 480px) {
            .main-layout {
                margin: 20px auto;
                padding: 0 15px;
            }
            
            .mobile-menu-toggle {
                right: 15px;
                padding: 10px 12px;
                font-size: 20px;
            }
            
            .sidebar-mobile-toggle {
                left: 15px;
                padding: 10px 12px;
                font-size: 16px;
            }
                      
            .nav-container,
            .sidebar {
                max-width: 300px;
            }
            
            .nav-item {
                padding: 18px 20px;
                font-size: 14px;
                min-height: 55px;
            }
            
            .sidebar .menu-item {
                padding: 15px 15px;
                font-size: 14px;
            }
            
            .logo {
                width: 60px;
                height: 60px;
                padding: 6px;
            }
            
            .school-info h1 {
                font-size: 20px;
            }
            
            .content-placeholder {
                padding: 30px 20px;
            }
            
            .content-placeholder h2 {
                font-size: 20px;
            }
            
            .content-placeholder p {
                font-size: 14px;
            }
            
           
        }
        /* Enhanced Scrollbar Styling for Mobile Menus - from indexwithtogglebutton.html */
        .nav-container::-webkit-scrollbar,
        .sidebar::-webkit-scrollbar {
            width: 12px;
        }

        .nav-container::-webkit-scrollbar-track,
        .sidebar::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.2);
            border-radius: 6px;
            margin: 10px 0;
        }

        .nav-container::-webkit-scrollbar-thumb,
        .sidebar::-webkit-scrollbar-thumb {
            background: var(--accent-orange);
            border-radius: 6px;
            border: 2px solid var(--secondary-blue);
        }

        .nav-container::-webkit-scrollbar-thumb:hover,
        .sidebar::-webkit-scrollbar-thumb:hover {
            background: #E8950F;
        }

        /* Force scrollbar to always show - from indexwithtogglebutton.html */
        .nav-container {
            scrollbar-width: thick;
            scrollbar-color: var(--accent-orange) rgba(255,255,255,0.2);
        }

        /* Animation for mobile menus - from indexwithtogglebutton.html */
        @keyframes slideInLeft {
            from { transform: translateX(-100%); }
            to { transform: translateX(0); }
        }

        @keyframes slideInRight {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        .nav-container.active {
            animation: slideInLeft 0.3s ease-out;
        }

        .sidebar.active {
            animation: slideInRight 0.3s ease-out;
        }
     /* Footer Styles - No Horizontal Scrolling */
        .footer {
            background: linear-gradient(135deg, #2D8B8B 0%, #1E5A96 100%);
            color: #FFFFFF;
            padding: 60px 0 30px 0;
            margin-top: 50px;
            overflow-x: hidden;
            width: 100%;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            width: 100%;
            box-sizing: border-box;
        }

        /* Main Navigation Columns */
        .footer-columns {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            margin-bottom: 50px;
            align-items: start;
            width: 100%;
        }

        .footer-column {
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow-wrap: break-word;
        }

        .footer-column h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 25px;
            color: #F5A623;
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #F5A623;
            padding-bottom: 10px;
        }

        .footer-column h3::before {
            font-size: 14px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #F5A623;
            border-radius: 4px;
            color: #FFFFFF;
        }

        .footer-column h3.main-nav::before { content: '🏠'; }
        .footer-column h3.educational::before { content: '📚'; }
        .footer-column h3.students::before { content: '🎓'; }
        .footer-column h3.parents::before { content: '👥'; }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            padding: 6px 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            line-height: 1.4;
        }

        .footer-links a::before {
            content: '▶';
            font-size: 8px;
            color: #F5A623;
            transition: all 0.3s ease;
            width: 12px;
        }

        .footer-links a:hover,
        .footer-links a:focus {
            color: #FFFFFF;
            transform: translateX(-6px);
            font-weight: 500;
        }

        .footer-links a:hover::before {
            color: #FFFFFF;
            transform: scale(1.2);
        }

        /* Contact Information Section - No Overflow */
        .contact-section {
            background: rgba(0, 0, 0, 0.15);
            padding: 30px 20px;
            border-radius: 12px;
            border-left: 4px solid #F5A623;
            margin-bottom: 50px;
            width: 100%;
            box-sizing: border-box;
        }

        .contact-section h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 25px;
            color: #F5A623;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #F5A623;
            padding-bottom: 10px;
            flex-wrap: wrap;
        }

        .contact-section h3::before {
            content: '📞';
            font-size: 16px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #F5A623;
            border-radius: 6px;
            color: #FFFFFF;
            flex-shrink: 0;
        }

        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
            width: 100%;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.95);
            font-weight: 400;
            line-height: 1.4;
            padding: 8px 0;
            overflow-wrap: break-word;
            min-width: 0;
        }

        .contact-item::before {
            font-size: 14px;
            width: 20px;
            text-align: center;
            color: #F5A623;
            flex-shrink: 0;
        }

        .contact-item.phone::before { content: '📱'; }
        .contact-item.email::before { content: '✉️'; }
        .contact-item.location::before { content: '📍'; }
        .contact-item.website::before { content: '🌐'; }
        .contact-item.whatsapp::before {
            content: '';
            width: 20px;
            height: 20px;
            background: url('whats.png') no-repeat center;
            background-size: contain;
            display: inline-block;
            margin-left: 8px;
            vertical-align: middle;        
        }

        .contact-links {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .contact-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            padding: 8px 16px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(245, 166, 35, 0.1);
            border-radius: 6px;
            border: 1px solid rgba(245, 166, 35, 0.3);
            flex-shrink: 0;
        }

        .contact-links a::before {
            content: '▶';
            font-size: 8px;
            color: #F5A623;
            transition: all 0.3s ease;
        }

        .contact-links a:hover {
            color: #FFFFFF;
            background: rgba(245, 166, 35, 0.2);
            border-color: #F5A623;
            transform: translateY(-2px);
        }

        /* Footer Bottom - No Overflow */
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px;
            width: 100%;
        }

        .footer-brand {
            text-align: center;
            width: 100%;
        }

        .footer-copyright {
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            width: 100%;
        }

        .footer-text {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 400;
            overflow-wrap: break-word;
        }

        .footer-text.brand {
            font-weight: 600;
            color: #F5A623;
            font-size: 16px;
        }

        /* Social Media Links - Responsive */
        .footer-social {
            display: flex;
            gap: 15px;
            align-items: center;
            justify-content: center;
            padding: 10px 0;
            flex-wrap: wrap;
            width: 100%;
        }

        .social-link {
            color: #FFFFFF;
            font-size: 16px;
            text-decoration: none;
            padding: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            flex-shrink: 0;
        }

        .social-link:hover,
        .social-link:focus {
            background: #F5A623;
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
            border-color: #F5A623;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .footer-columns {
                grid-template-columns: repeat(2, 1fr);
                gap: 40px;
                margin-bottom: 40px;
            }
            
            .contact-info {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .contact-links {
                flex-direction: column;
                gap: 12px;
            }
        }

        @media (max-width: 768px) {
            .footer {
                padding: 50px 0 25px 0;
            }
            
            .footer-columns {
                grid-template-columns: 1fr;
                gap: 35px;
                margin-bottom: 35px;
            }
            
            .footer-column h3 {
                justify-content: center;
                font-size: 16px;
            }
            
            .footer-links {
                text-align: center;
            }
            
            .footer-links a {
                justify-content: center;
            }
            
            .contact-section {
                text-align: center;
                padding: 25px 20px;
                margin-bottom: 35px;
            }
            
            .contact-section h3 {
                justify-content: center;
            }
            
            .contact-info {
                justify-items: center;
            }
            
            .contact-links {
                justify-content: center;
                flex-direction: row;
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .footer-columns {
                gap: 30px;
                margin-bottom: 30px;
            }
            
            .contact-section {
                padding: 20px 15px;
                margin-bottom: 30px;
            }
            
            .contact-links {
                flex-direction: column;
                gap: 10px;
            }
            
            .social-link {
                width: 40px;
                height: 40px;
                font-size: 14px;
            }
            
            .footer-social {
                gap: 15px;
            }
        }
        /* new table style *//* ========== CONTENT AREA - REDUCED PADDING ========== */
.content-placeholder {
    text-align: center;
    color: var(--white);
    padding: 15px;    /* Reduced from 20px */
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* ========== TABLE SECTIONS - 95% WIDTH ========== */
.table-section {
    margin: 10px auto;    /* Reduced from 15px */
    width: 95%;          /* Increased from 90% */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;        /* Reduced from 10px */
    backdrop-filter: blur(10px);
}

.table-section h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 8px;  /* Reduced from 10px */
    text-align: center;
    padding: 6px;        /* Reduced from 8px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== BOOTSTRAP-STYLE RESPONSIVE TABLE WRAPPER ========== */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========== DATA TABLE - NO FONT CHANGES ========== */
.data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin: 0;
    direction: rtl;
    font-size: 14px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-teal) 100%);
}

.data-table thead th {
    padding: 10px 8px;
    color: var(--white);
    font-weight: bold;
    text-align: right;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;    
}
.header-title::before {
    content: '📚';
    margin-left: 8px;
    font-size: 16px;
}
.header-subject::before {
    content: '🎓';
    margin-left: 8px;
    font-size: 16px;
}
.header-grade::before {
    content: '🏫';
    margin-left: 8px;
    font-size: 16px;
}
.grade-col {
    background: rgba(245, 166, 35, 0.1) !important;
    color: var(--accent-orange) !important;
    font-weight: bold !important;
    text-align: center !important;
    border-radius: 4px;
    min-width: 70px;
}
.data-table tbody tr:hover .grade-col {
    background: rgba(245, 166, 35, 0.2) !important;
    color: var(--accent-orange) !important;
}
.header-teacher::before {
    content: '👨‍🏫';
    margin-left: 8px;
    font-size: 16px;
}
/* For Live Lessons - Date column */
.header-date::before {
    content: '📅';
    margin-left: 8px;
    font-size: 16px;
}

/* For Worksheets and Recorded Lessons - View column */
.header-view::before {
    content: '👁️';
    margin-left: 8px;
    font-size: 16px;
}
.header-mecca::before {
    content: '🕌';
    margin-left: 8px;
    font-size: 16px;
}
.header-sudan::before {
    content: '🇸🇩';
    margin-left: 8px;
    font-size: 16px;
}
.header-subscribe::before {
    content: '📝';
    margin-left: 8px;
    font-size: 16px;
}
.data-table thead th:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* Enhanced View Button Styling */
.download-btn,
.watch-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.download-btn::before,
.watch-btn::before {
    content: '👁️';
    margin-left: 5px;
}

.download-btn:hover,
.watch-btn:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #6f42c1 100%) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4) !important;
}
.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.data-table tbody tr:hover {
    background: var(--light-teal);
    transform: translateX(-3px);
}

.data-table tbody td {
    padding: 8px;
    text-align: right;
    color: var(--dark-text);
    vertical-align: middle;
    white-space: nowrap;
    font-size: 14px;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: var(--secondary-blue);
    white-space: normal;
    max-width: 200px;
    line-height: 1.3;
    font-size: 14px;
}

/* ========== TABLE BUTTONS ========== */
.table-btn {
    background: var(--accent-orange);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px rgba(245, 166, 35, 0.3);
}

.table-btn:hover {
    background: #E8950F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.4);
}

/* ========== DATE AND TIME COLUMNS STYLING ========== */
.date-col {
    background: rgba(30, 90, 150, 0.1) !important;
    color: var(--secondary-blue) !important;
    font-weight: bold !important;
    text-align: center !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.5px;
    border-radius: 4px;
    min-width: 90px;
}

.time-col {
    background: rgba(245, 166, 35, 0.1) !important;
    color: var(--accent-orange) !important;
    font-weight: bold !important;
    text-align: center !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.5px;
    border-radius: 4px;
    min-width: 70px;
}

/* Date and Time hover effects */
.data-table tbody tr:hover .date-col {
    background: rgba(30, 90, 150, 0.2) !important;
    color: var(--secondary-blue) !important;
}

.data-table tbody tr:hover .time-col {
    background: rgba(245, 166, 35, 0.2) !important;
    color: var(--accent-orange) !important;
}

/* ========== MOBILE: RIGHT COLUMN FIRST VISIBLE ========== */
/* ========== MOBILE: RIGHT COLUMN (العنوان) FIRST VISIBLE ========== */
@media (max-width: 858px) {
    .content-placeholder {
        padding: 10px;
    }

    .content-placeholder h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .content-placeholder p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .search-form {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .table-section {
        margin: 8px auto;
        width: 95%;
        padding: 6px;
    }

    .table-section h3 {
        font-size: 20px;
        padding: 5px;
        margin-bottom: 6px;
    }

    .table-responsive {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        direction: rtl;
        scroll-behavior: smooth;
    }

    /* Force table to start scrolled to show rightmost column */
    .table-responsive::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 1px;
        height: 1px;
        scroll-snap-align: start;
    }

    .data-table {
        min-width: 750px;
        font-size: 14px;
        margin-bottom: 0;
        direction: rtl;
    }

    .data-table thead th {
        padding: 10px 8px;
        font-size: 14px;
        min-width: 100px;
    }

    /* Highlight the rightmost column (العنوان) */
    .data-table thead th:first-child {
        min-width: 160px;
        background: rgba(30, 90, 150, 0.15);
        border-right: 3px solid var(--secondary-blue);
        box-shadow: 2px 0 8px rgba(30, 90, 150, 0.2);
        position: relative;
    }

    .data-table thead th:first-child::after {
        content: '👑';
        position: absolute;
        top: 2px;
        right: 5px;
        font-size: 12px;
        opacity: 0.7;
    }

    .data-table tbody td:first-child {
        background: rgba(30, 90, 150, 0.08);
        border-right: 3px solid var(--secondary-blue);
        box-shadow: 2px 0 8px rgba(30, 90, 150, 0.15);
        font-weight: 600;
        color: var(--secondary-blue);
        white-space: normal;
        max-width: 160px;
        line-height: 1.3;
        font-size: 14px;
    }

    /* Enhanced hover effects for rightmost column */
    .data-table tbody tr:hover td:first-child {
        background: rgba(30, 90, 150, 0.2);
        color: var(--secondary-blue);
        font-weight: 700;
    }

    .data-table tbody tr:nth-child(even) td:first-child {
        background: rgba(30, 90, 150, 0.12);
    }

    /* Date and Time columns on mobile */
    .data-table thead th:nth-child(4),
    .data-table thead th:nth-child(5) {
        min-width: 80px;
        text-align: center;
    }

    .data-table tbody td {
        padding: 8px;
        font-size: 14px;
    }

    .data-table thead th:last-child {
        min-width: 90px;
    }

    /* Mobile date and time styling */
    .date-col {
        min-width: 80px !important;
        /*font-size: 13px !important;*/
    }

    .time-col {
        min-width: 60px !important;
        /*font-size: 13px !important;*/
    }

    .table-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
    }

    /* Custom Scrollbar for Mobile */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: var(--light-gray);
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--secondary-blue);
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: var(--primary-teal);
    }
}
/* ========== end MOBILE*/

/* ========== SMALL MOBILE - STICKY RIGHT COLUMN ========== */
@media (max-width: 480px) {
    .content-placeholder {
        padding: 8px;       /* Reduced from 12px */
    }

    .content-placeholder h2 {
        font-size: 20px;
    }

    .content-placeholder p {
        font-size: 15px;
    }

    .table-section {
        margin: 6px auto;    /* Reduced from 8px */
        width: 95%;         /* Still 95% width */
        padding: 4px;       /* Reduced from 6px */
    }

    .table-section h3 {
        font-size: 18px;
        padding: 4px;       /* Reduced from 5px */
        margin-bottom: 4px;  /* Reduced from 6px */
    }

    .data-table {
        min-width: 700px;    /* Increased for 6 columns */
        font-size: 14px;
    }

    .data-table thead th {
        padding: 8px 6px;
        font-size: 14px;
        min-width: 90px;
    }

    .data-table thead th:first-child {
        min-width: 140px;
    }

    /* Maintain sticky last column on small mobile */
    .data-table thead th:last-child {
        position: sticky;
        right: 0;
        background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-teal) 100%);
        z-index: 5;
        min-width: 80px;
        border-left: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .data-table tbody td:last-child {
        position: sticky;
        right: 0;
        background: var(--white);
        z-index: 4;
        min-width: 80px;
        border-left: 2px solid var(--border-color);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .data-table tbody tr:nth-child(even) td:last-child {
        background: rgba(248, 249, 250, 0.5);
    }

    .data-table tbody tr:hover td:last-child {
        background: var(--light-teal);
    }

    /* Date and Time columns on small mobile */
    .data-table thead th:nth-child(4),
    .data-table thead th:nth-child(5) {
        min-width: 70px;
        text-align: center;
    }

    .data-table tbody td {
        padding: 6px;
        font-size: 14px;
    }

    .data-table tbody td:first-child {
        max-width: 140px;
        font-size: 14px;
    }

    /* Small mobile date and time styling */
    .date-col {
        min-width: 70px !important;
        font-size: 12px !important;
        padding: 4px !important;
    }

    .time-col {
        min-width: 55px !important;
        font-size: 12px !important;
        padding: 4px !important;
    }

    .table-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 65px;
    }
}
        /* /new table style */
.back-to-top-container {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.back-to-top-btn {
    background: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(245, 166, 35, 0.3);
}

.back-to-top-btn:hover {
    background: #E8950F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.4);
    color: var(--white);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
.sidebar .menu-item.active {
    background: linear-gradient(90deg, var(--accent-orange) 0%, #E8950F 100%);
    color: var(--white) !important;
    font-weight: bold;
    transform: translateX(-10px);
    box-shadow: 5px 0 15px rgba(245, 166, 35, 0.3);
    border-radius: 0 25px 25px 0;
    right: -9px;
}
footer-links a.active {
    background: rgba(245, 166, 35, 0.2);
    color: var(--white) !important;
    font-weight: bold;
    padding-right: 15px;
    border-radius: 5px;
    border-right: 4px solid var(--accent-orange);
    transform: translateX(-10px);
}

.footer-links a.active::before {
    content: '⭐';
    color: var(--accent-orange) !important;
    font-size: 12px;
    transform: scale(1.2);
}

/* Contact Links in Footer - Active States */
.contact-links a.active {
    background: rgba(245, 166, 35, 0.3) !important;
    border-color: var(--accent-orange) !important;
    color: var(--white) !important;
    font-weight: bold;
    transform: translateY(-3px) scale(1.05);
}

/* Social Links - Active States */
.social-link.active {
    background: var(--accent-orange) !important;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.5) !important;
    border-color: var(--accent-orange) !important;
}
.contact-item.whatsapp-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url('whats.png') no-repeat center;
    background-size: contain;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
/* No Data Message */
.no-data-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.no-data-content {
    color: var(--white);
    max-width: 300px;
    margin: 0 auto;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}
.no-data-text {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}
/* Error Message */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
}
.error-content {
    color: #dc3545;
    max-width: 300px;
    margin: 0 auto;
}
.error-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.error-text {
    font-size: 16px;
    font-weight: 500;
}
/* Global Button Styles */
.btn {
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            line-height: 1;
            width: 90%;
            max-width: 300px;             
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            font-family: inherit;
            position: relative;
            overflow: hidden;
            margin-bottom: 10px;
        }

.btn-primary {
    background: linear-gradient(135deg, #2D8B8B 0%, #1E5A96 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 139, 139, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #F5A623 0%, #E8950F 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-tertiary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.btn-tertiary:hover {
    background: #e9ecef;
    border-color: #2D8B8B;
    color: #2D8B8B;
}
/* Dim button style for countdown */
.btn-dim {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.btn-dim:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}
.btn-full-width {
    width: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* Global Form Links Styles */
.form-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-links a {
    color: #2D8B8B;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-links a:hover {
    text-decoration: underline;
    color: #1E5A96;
}

.form-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.form-links-vertical a {
    margin: 0;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.form-links-vertical a:hover {
    background: rgba(45, 139, 139, 0.1);
    text-decoration: none;
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .form-links a {
        font-size: 13px;
        margin: 0 5px;
    }
}

.message {
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.message-error {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    margin-right: 5px;
    margin-left: 5px;
}

.message-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

.message-success {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #155724;
}

.message-info {
    background: rgba(13, 202, 240, 0.1);
    border: 2px solid rgba(13, 202, 240, 0.3);
    color: #055160;
}

.message-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.message-list li {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.message-list li:last-child {
    margin-bottom: 0;
}

.message-list li:before {
    content: "⚠️ ";
    margin-left: 5px;
}

.message-success .message-list li:before {
    content: "✅ ";
}

.message-info .message-list li:before {
    content: "ℹ️ ";
}

.message-warning .message-list li:before {
    content: "⚠️ ";
}

/* Form Header Styles */
.form-header {
    background: linear-gradient(135deg, #2D8B8B 0%, #1E5A96 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.form-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.form-header-simple {
    background: rgba(45, 139, 139, 0.1);
    color: #2D8B8B;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid rgba(45, 139, 139, 0.2);
}

.form-header-simple h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1E5A96;
}

.form-header-simple p {
    font-size: 14px;
    margin: 0;
    color: #2D8B8B;
}

/* Compact Message for small spaces */
.message-compact {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    text-align: right;
}

.message-compact.message-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.message-compact.message-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #363;
}

.message-compact.message-warning {
    background: #ffc;
    border: 1px solid #fed;
    color: #663;
}

@media (max-width: 480px) {
    .form-header {
        padding: 20px 15px;
    }
    
    .form-header h3 {
        font-size: 18px;
    }
    
    .form-header-simple {
        padding: 15px;
    }
    
    .form-header-simple h3 {
        font-size: 16px;
    }
    
    .message {
        padding: 15px;
        margin: 15px 0;
    }
}
.form-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    direction: rtl;
    
}
/* Input Classes Only */
.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.3s ease;
    background: #f9f9f9;
    min-height: 48px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #2D8B8B;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 139, 139, 0.1);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2D8B8B;
    font-size: 16px;
}
/* Simple RTL icon fix */
html[dir="rtl"] .input-icon:not(.ltrdir .input-icon) {
    right: 12px;
    left: auto;
}

html[dir="rtl"] .form-input:not(.ltrdir .form-input) {
    padding-right: 45px;
    padding-left: 12px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .form-input {
        min-height: 52px;
        font-size: 16px;
        padding: 15px 16px 15px 42px;
    }
    
    .input-icon {
        right: 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-input {
        padding: 14px 12px 14px 40px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .input-icon {
        right: 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .form-input {
        padding: 12px 10px 12px 35px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .input-icon {
        right: 10px;
        font-size: 13px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .form-input {
        padding: 13px 16px 13px 42px;
        font-size: 16px;
        min-height: 52px;
    }
}
.ltrdir{
    direction: ltr;
}
/* Simple Form Labels CSS */
.form-group {
    margin: 10px 0 20px 0;
    padding: 0 15px;  /* Add left/right padding */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;    
    color: var(--dark-text);
    font-size: 16px;
    text-align: right;
    padding-right: 10px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    text-align: right;
     padding-right: 10px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
   
}
.no-margin{
    margin: 0!important;
}
.checkbox-group label {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
    color: #333;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}
.form-half {
    flex: 1;
    margin-bottom: 0;
}
.form-hint {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    display: block;
}
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-half {
        margin-bottom: 15px;
    }
}
.required{
    color: red;
}