        .topic-card.highlight-links {
            box-shadow: 0 0 0 4px #1976d2 !important;
            border-color: #1976d2 !important;
            background: #fffde7 !important;
        }
        .topic-card.highlight-links h3 {
            color: #1976d2 !important;
            text-decoration: underline 3px #1976d2 !important;
            background: #fffde7 !important;
            font-weight: bold !important;
            border-radius: 3px;
            padding: 0 2px;
        }
        .topic-card.highlight-links p {
            color: #1976d2 !important;
            background: #fffde7 !important;
        }
        body.highlight-links a {
            text-decoration: underline 3px #1976d2 !important;
            color: #1976d2 !important;
            background: #fffde7 !important;
            font-weight: bold !important;
            border-radius: 3px;
            padding: 0 2px;
            transition: background 0.2s, color 0.2s;
        }
        body.big-cursor {
            /* visual cursor handled by accessibility widget; use native pointer */
            cursor: pointer !important;
        }
        body.big-cursor a, body.big-cursor button, body.big-cursor input, body.big-cursor textarea, body.big-cursor select, body.big-cursor label, body.big-cursor .accessibility-widget {
            /* visual cursor handled by accessibility widget; use native pointer */
            cursor: pointer !important;
        }
        body.high-contrast-light {
            background: #fff !important;
        }
        body.high-contrast-light, body.high-contrast-light * {
            color: #111 !important;
            background: #fff !important;
            border-color: #111 !important;
        }
        body.high-contrast-light a, body.high-contrast-light .btn,
        body.high-contrast-light .header,
        body.high-contrast-light .container,
        body.high-contrast-light .welcome-section,
        body.high-contrast-light .topic-card,
        body.high-contrast-light .subtopic-card,
        body.high-contrast-light .title-section,
        body.high-contrast-light .lessons-grid,
        body.high-contrast-light .lesson-card,
        body.high-contrast-light .sidebar,
        body.high-contrast-light .quiz-section {
            background: #f5f5f5 !important;
            color: #111 !important;
            border-color: #111 !important;
        }
        body.high-contrast {
            background: #000 !important;
        }
        body.high-contrast, body.high-contrast * {
            color: #fff !important;
            background: #000 !important;
            border-color: #fff !important;
        }
        body.high-contrast a, body.high-contrast .btn,
        body.high-contrast .header,
        body.high-contrast .container,
        body.high-contrast .welcome-section,
        body.high-contrast .topic-card,
        body.high-contrast .subtopic-card,
        body.high-contrast .title-section,
        body.high-contrast .lessons-grid,
        body.high-contrast .lesson-card,
        body.high-contrast .sidebar,
        body.high-contrast .quiz-section {
            background: #111 !important;
            color: #fff !important;
            border-color: #fff !important;
        }
        body.large-text, body.large-text * {
            font-size: 1.25em !important;
        }
        body.dyslexic-font, body.dyslexic-font * {
            font-family: 'OpenDyslexic', Arial, sans-serif !important;
            font-size: 1.1em !important;
        }
        /* ...existing code... */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
        }
        body:not(.high-contrast) {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .header {
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 20px auto;
            max-width: 1200px;
        }

        .header h1 {
            color: #333;
            transition: all 0.3s ease;
        }

        .header h1:hover {
            color: #667eea;
            transform: scale(1.05);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-email {
            color: #666;
            font-weight: bold;
        }

        /* פעמון התראות */
        .notifications-bell {
            position: relative;
            cursor: pointer;
            font-size: 24px;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .notifications-bell:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.1);
        }

        .notifications-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: #dc3545;
            color: white;
            font-size: 11px;
            font-weight: bold;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .notifications-dropdown {
            display: none;
            position: absolute;
            top: 60px;
            left: 20px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            width: 350px;
            max-height: 450px;
            overflow-y: auto;
            z-index: 1000;
        }

        .notifications-dropdown.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .notifications-header {
            padding: 15px;
            border-bottom: 1px solid #eee;
            font-weight: bold;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .notification-item {
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }

        .notification-item:hover {
            background: #f8f9fa;
        }

        .notification-item.unread {
            background: #e3f2fd;
        }

        .notification-title {
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .notification-message {
            color: #666;
            font-size: 0.9em;
            margin-bottom: 5px;
        }

        .notification-time {
            color: #999;
            font-size: 0.8em;
        }

        .no-notifications {
            padding: 30px;
            text-align: center;
            color: #999;
        }

        /* כפתור המבורגר */
        .hamburger-btn {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .hamburger-btn:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        .hamburger-btn span {
            width: 25px;
            height: 3px;
            background: #333;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .hamburger-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* מגירת הניווט */
        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100vh;
            background: white;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            transition: left 0.3s ease;
            z-index: 1000;
            overflow-y: auto;
        }

        .sidebar.open {
            left: 0;
        }

        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .sidebar-header h3 {
            margin: 0;
            font-size: 1.2em;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .sidebar-content {
            padding: 20px 0;
        }

        .sidebar-item {
            display: block;
            width: 100%;
            padding: 15px 25px;
            text-decoration: none;
            color: #333;
            font-weight: 500;
            border: none;
            background: none;
            text-align: right;
            font-size: 16px;
            transition: all 0.3s ease;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
        }

        .sidebar-item:hover {
            background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
            padding-right: 35px;
        }

        .admin-item {
            color: #28a745;
            font-weight: bold;
        }

        .admin-item:hover {
            background: rgba(40, 167, 69, 0.1);
        }

        .logout-item {
            color: #dc3545;
            font-weight: bold;
        }

        .logout-item:hover {
            background: rgba(220, 53, 69, 0.1);
        }

        /* רקע כהה */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .nav-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            text-decoration: none;
            font-size: 0.9em;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .nav-btn:hover {
            background: linear-gradient(45deg, #5a6fd8, #6a4190);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .logout-btn {
            background: #dc3545;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .logout-btn:hover {
            background: #c82333;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .container {
              max-width: 1190px;
            margin: 40px auto;
            padding: 0 20px;
        }

        /* שורה עליונה עם שתי כרטיסיות */
        .top-cards-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
            box-sizing: border-box;
                /* limit the cards row to the header's inner content width and center it
                    increased by additional 10px as requested */
                max-width: 1190px;
            margin-left: auto;
            margin-right: auto;
            padding-inline: 0;
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 15px;
                margin: 15px 8px;
                width: calc(100% - 16px);
                max-width: calc(100% - 16px);
            }

            .header h1 {
                font-size: 1.5em;
                line-height: 1.2;
            }

            .user-info {
                gap: 10px;
            }

            .sidebar {
                width: 280px;
            }

            .top-cards-row {
                grid-template-columns: 1fr;
            }

            /* תיקוני יעדים יומיים למובייל */
            .goal-type-selector {
                flex-direction: column;
            }

            .goals-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .goal-stat-item {
                padding: 12px 8px;
            }

            .goal-stat-icon {
                font-size: 1.8em;
                margin-bottom: 5px;
            }

            .goal-stat-value {
                font-size: 1.4em;
                margin-bottom: 3px;
            }

            .goal-stat-label {
                font-size: 0.75em;
                line-height: 1.2;
                word-break: break-word;
                white-space: normal;
            }

            .performance-tabs {
                overflow-x: auto;
                flex-wrap: nowrap;
                gap: 5px;
            }

            .perf-tab-btn {
                padding: 8px 10px;
                font-size: 0.8em;
            }

            .perf-tab-btn .tab-text {
                display: none;
            }

            .perf-tab-btn .tab-icon {
                font-size: 1.3em;
            }

            .goal-settings-card,
            .today-goal-card,
            .goals-stats-card,
            .goals-history-card {
                padding: 15px;
            }

            .goal-icon {
                font-size: 2em;
            }

            .goal-title {
                font-size: 1.2em;
            }

            /* תיקוני מסלול למידה למובייל */
            .recommendation-box {
                padding: 20px;
            }

            .recommendation-title {
                font-size: 1.4em;
            }

            .recommendation-actions {
                flex-direction: column;
            }

            .practice-step {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .proficiency-bar {
                width: 80px;
            }
        }
            /* Make dashboard cards use the full available width on mobile (RTL-friendly) */
            .container {
                padding: 0 8px;
                max-width: 100%;
                margin: 20px auto;
            }

            .welcome-card,
            .performance-card,
            .goal-settings-card,
            .today-goal-card,
            .goals-stats-card,
            .goals-history-card,
            .recommendation-box,
            .user-rank-section,
            .correction-codes-card {
                width: 100%;
                margin-left: 0;
                margin-right: 0;
                box-sizing: border-box;
            }

            .top-cards-row {
                gap: 12px;
            }

        .welcome-card {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .performance-card {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .welcome-card h2,
        .performance-card h2 {
            color: #333;
            margin-bottom: 15px;
            font-size: 1.8em;
        }

        .welcome-card p,
        .performance-card p {
            color: #666;
            font-size: 1.1em;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* סגנונות דרגות משתמש */
        .user-rank-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            text-align: center;
        }

        .user-rank-section h4 {
            color: #333;
            margin-bottom: 15px;
            font-size: 1.2em;
        }

        .correction-codes-card {
            background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
            padding: 20px;
            border-radius: 10px;
            border: 2px solid #ff6b35;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
        }

        .rank-display {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .rank-icon {
            font-size: 3em;
            line-height: 1;
        }

        .rank-info {
            text-align: right;
        }

        .rank-title {
            font-size: 1.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 5px;
        }

        .rank-description {
            color: #666;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .rank-progress {
            margin-top: 10px;
        }

        .rank-progress-bar {
            width: 100%;
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .rank-progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #28a745, #20c997);
            width: 0%;
            border-radius: 4px;
            transition: width 1s ease-in-out;
        }

        .rank-progress-text {
            font-size: 0.8em;
            color: #666;
        }

        /* Mobile override: expand the 'הדרגה' card to full available RTL width */
        @media (max-width: 768px) {
            .welcome-card .user-rank-section {
                width: calc(100% + 40px) !important;
                margin-inline-start: -20px !important;
                margin-inline-end: -20px !important;
                padding-inline-start: 16px !important;
                padding-inline-end: 16px !important;
                box-sizing: border-box !important;
                border-radius: 12px;
            }

            .welcome-card .user-rank-section .rank-display {
                justify-content: center;
                gap: 12px;
            }
        }

        /* סטטיסטיקות מיני */
        .mini-stats {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .mini-stat-item {
            text-align: center;
        }

        .mini-stat-number {
            font-size: 1.8em;
            font-weight: bold;
            color: #667eea;
        }

        .mini-stat-label {
            font-size: 0.8em;
            color: #666;
            margin-top: 5px;
        }

        /* סטטיסטיקת קודי התיקון מיוחדת */
        .mini-stat-item.correction-codes {
            background: linear-gradient(45deg, #ff6b35, #ff8e35);
            color: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
            flex: 1;
            min-width: 280px;
            max-width: 320px;
            text-align: right;
        }

        .mini-stat-item.correction-codes .mini-stat-number {
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
            font-size: 2.2em;
        }

        .mini-stat-item.correction-codes .mini-stat-label {
            color: rgba(255, 255, 255, 0.95);
            font-weight: bold;
            font-size: 0.85em;
        }

        .mini-stat-item.correction-codes .correction-codes-info {
            text-align: right;
        }

        /* אנימציית pulse לקודי תיקון */
        @keyframes pulse {
            0% { 
                box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
                transform: scale(1.05);
            }
            50% { 
                box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6);
                transform: scale(1.08);
            }
            100% { 
                box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
                transform: scale(1.05);
            }
        }

        /* נושאים מובילים וחלשים */
        .topics-summary {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 20px;
        }

        @media (max-width: 600px) {
            .topics-summary {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .sidebar {
                width: 100vw;
                left: -100vw;
            }

            .sidebar.open {
                left: 0;
            }

            .sidebar-header {
                padding: 15px;
            }

            .sidebar-content {
                padding: 15px 0;
            }

            .header {
                padding: 12px;
            }

            .header h1 {
                font-size: 1.3em;
            }

            .user-info {
                gap: 8px;
            }

            /* תיקון סטטיסטיקות יעדים למסכים קטנים */
            .goals-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .goal-stat-item {
                padding: 15px 10px;
            }

            .goal-stat-icon {
                font-size: 2em;
                margin-bottom: 8px;
            }

            .goal-stat-value {
                font-size: 1.5em;
                margin-bottom: 5px;
            }

            .goal-stat-label {
                font-size: 0.75em;
                line-height: 1.3;
                word-break: break-word;
                white-space: normal;
            }
        }

        .strong-topics,
        .weak-topics {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            text-align: right;
        }

        .strong-topics h4,
        .weak-topics h4 {
            color: #333;
            margin-bottom: 10px;
            font-size: 1em;
        }

        .strong-topics div,
        .weak-topics div {
            color: #666;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .user-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            text-align: right;
        }

        .user-details h4 {
            color: #333;
            margin-bottom: 15px;
        }

        .user-details p {
            margin-bottom: 10px;
            color: #555;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .card {
            background: rgba(255, 255, 255, 0.95);
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .card h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 1.5em;
        }

        .card p {
            color: #666;
            line-height: 1.6;
        }

        .btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            text-decoration: none;
            display: inline-block;
            margin-top: 15px;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background: linear-gradient(45deg, #5a6fd8, #6a4190);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .change-password-link {
            display: inline-block;
            color: #667eea;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 16px;
            border: 2px solid #667eea;
            border-radius: 6px;
            transition: all 0.3s ease;
            margin-top: 5px;
        }

        .change-password-link:hover {
            background-color: #667eea;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        }

        .stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2em;
            font-weight: bold;
            color: #667eea;
        }

        .stat-label {
            font-size: 0.9em;
            color: #666;
            margin-top: 5px;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: white;
            font-size: 1.2em;
        }

        .spinner {
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top: 3px solid white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* סגנונות פסי התקדמות */
        .progress-section {
            margin-top: 20px;
        }

        .progress-item {
            margin-bottom: 20px;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .progress-label {
            font-weight: bold;
            color: #333;
            font-size: 0.95em;
        }

        .progress-numbers {
            font-weight: bold;
            color: #667eea;
            font-size: 0.9em;
        }

        .progress-bar {
            width: 100%;
            height: 12px;
            background-color: #e9ecef;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .progress-fill {
            height: 100%;
            width: 0%;
            border-radius: 6px;
            transition: width 1.5s ease-in-out;
            position: relative;
        }

        /* צבעים שונים לפסי התקדמות */
        #topicsProgressBar {
            background: linear-gradient(45deg, #28a745, #20c997);
            /* ירוק */
        }

        #subtopicsProgressBar {
            background: linear-gradient(45deg, #007bff, #0056b3);
            /* כחול */
        }

        #lessonsProgressBar {
            background: linear-gradient(45deg, #fd7e14, #e55a00);
            /* כתום */
        }

        #questionsProgressBar {
            background: linear-gradient(45deg, #9c27b0, #7b1fa2);
            /* סגול */
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg,
                    transparent,
                    rgba(255, 255, 255, 0.4),
                    transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* סגנונות תפריט ניהול */
        .admin-menu {
            position: relative;
            display: inline-block;
        }

        .admin-menu-btn {
            position: relative;
        }

        .admin-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            min-width: 250px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            z-index: 1000;
            overflow: hidden;
            margin-top: 5px;
        }

        .admin-dropdown.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .admin-option {
            display: block;
            padding: 15px 20px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #eee;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .admin-option:last-child {
            border-bottom: none;
        }

        .admin-option:hover {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            transform: translateX(-3px);
        }

        .admin-option:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .admin-option:hover:before {
            transform: scaleY(1);
        }

        /* סגנונות כרטיסיות ביצועים */
        .performance-tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 20px;
            border-bottom: 2px solid #e0e6ed;
            overflow-x: auto;
            scrollbar-width: thin;
        }

        .performance-tabs::-webkit-scrollbar {
            height: 6px;
        }

        .performance-tabs::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 3px;
        }

        .perf-tab-btn {
            background: none;
            border: none;
            padding: 10px 12px;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            color: #666;
            font-weight: bold;
            font-size: 0.85em;
            transition: all 0.3s ease;
            position: relative;
            bottom: -2px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .perf-tab-btn .tab-text {
            display: inline;
        }

        .perf-tab-btn .tab-icon {
            font-size: 1.1em;
        }

        .perf-tab-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-bottom: 2px solid transparent;
        }

        .perf-tab-btn:hover:not(.active) {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
        }

        .perf-tab-content {
            display: none;
        }

        .perf-tab-content.active {
            display: block;
        }

        /* סגנונות יעדים יומיים */
        .goal-settings-card,
        .today-goal-card,
        .goals-stats-card,
        .goals-history-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
        }

        .goal-settings-card h3,
        .today-goal-card h3,
        .goals-stats-card h3,
        .goals-history-card h3 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.3em;
        }

        .goal-type-selector {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .goal-type-selector label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-weight: 500;
            padding: 10px 20px;
            border: 2px solid #e0e6ed;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .goal-type-selector label:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        .goal-type-selector input[type="radio"]:checked + label,
        .goal-type-selector label:has(input[type="radio"]:checked) {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .goal-input-section {
            margin-bottom: 20px;
        }

        .goal-input-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .goal-input-group label {
            font-weight: 600;
            color: #333;
        }

        .goal-input-group input[type="number"] {
            padding: 12px;
            border: 2px solid #e0e6ed;
            border-radius: 8px;
            font-size: 1.1em;
            transition: all 0.3s ease;
            max-width: 200px;
        }

        .goal-input-group input[type="number"]:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .goal-suggestion {
            font-size: 0.9em;
            color: #666;
            font-style: italic;
        }

        .btn-save-goal {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-save-goal:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .goal-display {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .goal-icon {
            font-size: 3em;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .goal-info {
            flex: 1;
        }

        .goal-title {
            font-size: 1.5em;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .goal-description {
            color: #666;
            font-size: 0.95em;
        }

        .goal-progress-section {
            margin-bottom: 20px;
        }

        .goal-progress-bar {
            width: 100%;
            height: 30px;
            background: #e0e6ed;
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .goal-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4caf50, #8bc34a);
            transition: width 0.5s ease;
            position: relative;
            border-radius: 15px;
        }

        .goal-progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .goal-progress-text {
            text-align: center;
            font-weight: bold;
            color: #333;
            margin-top: 10px;
            font-size: 1.1em;
        }

        .goal-status {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-right: 4px solid #ffc107;
        }

        .goal-status.completed {
            background: #e8f5e9;
            border-right-color: #4caf50;
        }

        .status-icon {
            font-size: 1.5em;
        }

        .status-text {
            font-weight: 600;
            color: #333;
        }

        .goals-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        /* תצוגה במסכים גדולים */
        @media (min-width: 1200px) {
            .goals-stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .goal-stat-item {
            text-align: center;
            padding: 20px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .goal-stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .goal-stat-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .goal-stat-value {
            font-size: 2em;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .goal-stat-label {
            color: #666;
            font-size: 0.9em;
        }

        .goals-history-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .goal-history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-right: 4px solid #e0e6ed;
            transition: all 0.3s ease;
        }

        .goal-history-item.completed {
            background: #e8f5e9;
            border-right-color: #4caf50;
        }

        .goal-history-item.failed {
            background: #ffebee;
            border-right-color: #f44336;
        }

        .goal-history-item:hover {
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .goal-history-date {
            font-weight: 600;
            color: #333;
        }

        .goal-history-info {
            flex: 1;
            margin: 0 15px;
            text-align: right;
        }

        .goal-history-progress {
            color: #666;
            font-size: 0.9em;
        }

        .goal-history-badge {
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9em;
        }

        .goal-history-badge.completed {
            background: #4caf50;
            color: white;
        }

        .goal-history-badge.failed {
            background: #f44336;
            color: white;
        }

        /* סגנונות מסלול למידה */
        .next-topic-card,
        .weak-skills-card,
        .almost-mastered-card,
        .practice-order-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
        }

        .next-topic-card h3,
        .weak-skills-card h3,
        .almost-mastered-card h3,
        .practice-order-card h3 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.3em;
        }

        .recommendation-box {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            text-align: center;
            transition: all 0.3s ease;
        }

        .recommendation-box:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
        }

        .recommendation-title {
            font-size: 1.8em;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .recommendation-description {
            font-size: 1.1em;
            margin-bottom: 20px;
            opacity: 0.95;
            line-height: 1.6;
        }

        .recommendation-reason {
            background: rgba(255, 255, 255, 0.2);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 0.95em;
        }

        .recommendation-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .btn-start-topic {
            background: white;
            color: #667eea;
            padding: 12px 30px;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-start-topic:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        }

        .btn-skip-topic {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 12px 30px;
            border: 2px solid white;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-skip-topic:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .skills-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .skill-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-right: 4px solid #e0e6ed;
            transition: all 0.3s ease;
        }

        .skill-item.weak {
            border-right-color: #f44336;
            background: #ffebee;
        }

        .skill-item.almost-mastered {
            border-right-color: #ff9800;
            background: #fff3e0;
        }

        .skill-item:hover {
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .skill-info {
            flex: 1;
        }

        .skill-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
            font-size: 1.05em;
        }

        .skill-topic {
            color: #666;
            font-size: 0.9em;
        }

        .skill-proficiency {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .proficiency-bar {
            width: 100px;
            height: 8px;
            background: #e0e6ed;
            border-radius: 4px;
            overflow: hidden;
        }

        .proficiency-fill {
            height: 100%;
            background: linear-gradient(90deg, #f44336, #ff9800, #4caf50);
            transition: width 0.5s ease;
        }

        .proficiency-text {
            font-weight: bold;
            color: #333;
            min-width: 40px;
        }

        .practice-order-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .practice-step {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .practice-step:hover {
            background: #e3f2fd;
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .step-number {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2em;
            flex-shrink: 0;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
            font-size: 1.1em;
        }

        .step-reason {
            color: #666;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .step-priority {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: bold;
            white-space: nowrap;
        }

        .priority-high {
            background: #ffebee;
            color: #c62828;
        }

        .priority-medium {
            background: #fff3e0;
            color: #e65100;
        }

        .priority-low {
            background: #e8f5e9;
            color: #2e7d32;
        }

        /* סגנונות התקדמות מפורטת */
        .detailed-progress-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 30px;
        }

        .detailed-stat-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .detailed-stat-card:hover {
            transform: translateY(-2px);
        }

        .detailed-stat-card h3 {
            margin: 0 0 6px 0;
            font-size: 11px;
            opacity: 0.9;
            line-height: 1.2;
        }

        .detailed-stat-card span {
            font-size: 18px;
            font-weight: bold;
            display: block;
        }

        /* סגנונות סטטיסטיקות זמן */
        .time-stats-summary {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 30px;
        }

        .time-stat-card {
            background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .time-stat-card:hover {
            transform: translateY(-2px);
        }

        .time-stat-card h3 {
            margin: 0 0 8px 0;
            font-size: 12px;
            opacity: 0.9;
            line-height: 1.2;
        }

        .time-stat-card span {
            font-size: 18px;
            font-weight: bold;
            display: block;
        }

        .time-stat-card small {
            font-size: 10px;
            opacity: 0.8;
            margin-top: 4px;
            display: block;
        }

        .time-detailed-section {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .time-section {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .time-section h3 {
            margin: 0 0 15px 0;
            color: #333;
            font-size: 14px;
        }

        .time-lessons-list {
            max-height: 300px;
            overflow-y: auto;
        }

        .time-lesson-item {
            background: white;
            padding: 10px;
            margin-bottom: 8px;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            font-size: 12px;
        }

        .time-lesson-title {
            font-weight: bold;
            color: #333;
            margin-bottom: 4px;
        }

        .time-lesson-details {
            color: #666;
            font-size: 11px;
        }

        .time-lesson-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 11px;
        }

        /* סטיילים לסטטיסטיקות זמן */
        .time-stats-overview {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .time-stat-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            transition: transform 0.3s ease;
        }

        .time-stat-card:hover {
            transform: translateY(-2px);
        }

        .stat-icon {
            font-size: 2em;
            opacity: 0.9;
        }

        .stat-info {
            flex: 1;
        }

        .stat-title {
            font-size: 0.9em;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .stat-value {
            font-size: 1.4em;
            font-weight: bold;
        }

        .time-details-section {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }

        .time-details-section h3 {
            margin-top: 0;
            color: #333;
            border-bottom: 2px solid #667eea;
            padding-bottom: 10px;
        }

        .question-times-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }

        .question-time-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .question-number {
            font-weight: bold;
            color: #667eea;
            min-width: 80px;
        }

        .question-time {
            font-weight: bold;
            color: #333;
            min-width: 80px;
        }

        .time-bar {
            flex: 1;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }

        .time-fill {
            height: 100%;
            background: linear-gradient(90deg, #28a745, #20c997);
            transition: width 0.5s ease;
        }

        .more-questions-info {
            text-align: center;
            color: #666;
            font-style: italic;
            margin-top: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
        }

        .time-tips-section {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .time-tips-section h3 {
            margin-top: 0;
            color: #333;
            border-bottom: 2px solid #ffc107;
            padding-bottom: 10px;
        }

        .tips-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .tip-card {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            padding: 15px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid #ffc107;
        }

        .tip-icon {
            font-size: 1.5em;
        }

        .tip-text {
            color: #333;
            font-weight: 500;
        }

        .loading-message {
            text-align: center;
            padding: 40px;
            color: #667eea;
            font-size: 1.1em;
        }

        .error-message {
            text-align: center;
            padding: 40px;
            color: #dc3545;
        }

        .error-message h3 {
            color: #dc3545;
            margin-bottom: 15px;
        }

        .retry-btn {
            background: #dc3545;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 15px;
        }

        .retry-btn:hover {
            background: #c82333;
        }

        .no-data-message {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .no-data-message h3 {
            color: #667eea;
            margin-bottom: 15px;
        }

        .time-value {
            color: #20c997;
            font-weight: bold;
        }

        .score-value {
            color: #667eea;
            font-weight: bold;
        }

        .detailed-progress-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            border: 1px solid #e0e6ed;
        }

        .detailed-progress-details h3 {
            margin-bottom: 20px;
            color: #333;
        }

        .detailed-topic-item {
            background: white;
            border: 1px solid #e0e6ed;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .detailed-topic-item:hover {
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .detailed-topic-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .detailed-topic-title {
            font-weight: bold;
            color: #333;
            font-size: 16px;
        }

        .topic-description {
            color: #666;
            line-height: 1.6;
            margin-bottom: 10px;
            /* הגבלה לחמש שורות */
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 8em; /* גובה של 5 שורות בערך */
        }

        .detailed-topic-status {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
        }

        .detailed-status-not-started {
            background: #f8f9fa;
            color: #6c757d;
        }

        .detailed-status-in-progress {
            background: #fff3cd;
            color: #856404;
        }

        .detailed-status-completed {
            background: #d4edda;
            color: #155724;
        }

        .detailed-subtopics-list {
            margin-top: 10px;
            padding-right: 20px;
            display: none; /* מוסתר בברירת מחדל */
        }

        .detailed-subtopics-list.expanded {
            display: block;
        }

        .detailed-subtopic-item {
            background: #f8f9fa;
            border: 1px solid #e0e6ed;
            border-radius: 8px;
            margin: 8px 0;
            padding: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .detailed-subtopic-item:hover {
            background: #e9ecef;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .detailed-subtopic-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
        }

        .detailed-subtopic-name {
            color: #555;
            font-weight: bold;
        }

        .detailed-lessons-count {
            font-size: 12px;
            color: #999;
        }

        /* סגנונות סטטוס השלמה של תתי-נושאים */
        .subtopic-completion-status {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 4px;
            margin-left: 10px;
        }

        .toggle-arrow {
            color: #667eea;
            font-weight: bold;
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .toggle-arrow.expanded {
            transform: rotate(90deg);
        }

        .lessons-list {
            margin-top: 10px;
            padding-right: 15px;
            display: none;
        }

        .lessons-list.expanded {
            display: block;
        }

        .lesson-item {
            padding: 8px 12px;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            margin: 5px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .lesson-name {
            color: #495057;
        }

        .lesson-status {
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 12px;
        }

        .lesson-completed {
            background: #d4edda;
            color: #155724;
        }

            .lesson-not-completed {
                background: #f8d7da;
                color: #721c24;
            }

            /* סגנונות כרטיסיית מבחנים על זמן */
            .timed-exams-stats {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 15px;
                margin-bottom: 30px;
            }

            .exam-section-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 20px;
            }

            .exam-filter-buttons {
                display: flex;
                gap: 8px;
            }

            .exam-filter-btn {
                background: #f8f9fa;
                border: 1px solid #dee2e6;
                color: #495057;
                padding: 8px 16px;
                border-radius: 6px;
                cursor: pointer;
                font-size: 14px;
                font-weight: 500;
                transition: all 0.3s ease;
            }

            .exam-filter-btn.active,
            .exam-filter-btn:hover {
                background: linear-gradient(135deg, #667eea, #764ba2);
                color: white;
                border-color: transparent;
            }

            .exam-history-container {
                max-height: 400px;
                overflow-y: auto;
                border: 1px solid #e0e6ed;
                border-radius: 8px;
                background: #f8f9fa;
            }

            .exam-history-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px;
                border-bottom: 1px solid #e9ecef;
                transition: background 0.3s ease;
            }

            .exam-history-item:last-child {
                border-bottom: none;
            }

            .exam-history-item:hover {
                background: #e9ecef;
            }

            .exam-info {
                flex: 1;
            }

            .exam-name {
                font-weight: bold;
                color: #495057;
                margin-bottom: 4px;
            }

            .exam-type {
                font-size: 12px;
                color: #6c757d;
                background: #e9ecef;
                padding: 2px 8px;
                border-radius: 12px;
                display: inline-block;
                margin-bottom: 4px;
            }

            .exam-date {
                font-size: 12px;
                color: #868e96;
            }

            .exam-results {
                text-align: center;
                min-width: 100px;
            }

            .exam-score {
                font-size: 18px;
                font-weight: bold;
                margin-bottom: 4px;
            }

            .exam-score.excellent {
                color: #28a745;
            }

            .exam-score.good {
                color: #17a2b8;
            }

            .exam-score.average {
                color: #ffc107;
            }

            .exam-score.poor {
                color: #dc3545;
            }

            .exam-time {
                font-size: 12px;
                color: #6c757d;
            }

            .exam-quick-actions {
                margin-top: 30px;
                padding: 20px;
                background: #f8f9fa;
                border-radius: 8px;
                border: 1px solid #e9ecef;
            }

            .quick-exam-buttons {
                display: flex;
                gap: 15px;
                justify-content: center;
                margin-top: 15px;
            }

            .quick-exam-btn {
                background: linear-gradient(135deg, #28a745, #20c997);
                color: white;
                border: none;
                padding: 12px 24px;
                border-radius: 8px;
                font-weight: bold;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
            }

            .quick-exam-btn:hover {
                background: linear-gradient(135deg, #218838, #1ea085);
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
            }

            @media (max-width: 768px) {
                .timed-exams-stats {
                    grid-template-columns: repeat(2, 1fr);
                    gap: 12px;
                }

                .exam-section-header {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 10px;
                }

                .exam-filter-buttons {
                    width: 100%;
                    justify-content: stretch;
                }

                .exam-filter-btn {
                    flex: 1;
                    text-align: center;
                }

                .quick-exam-buttons {
                    flex-direction: column;
                }
            }        @media (max-width: 768px) {
            .performance-card {
                padding: 15px;
                overflow-x: hidden;
            }

            .performance-card h2 {
                font-size: 1.3em;
                margin-bottom: 10px;
            }

            .performance-tabs {
                flex-wrap: wrap;
                justify-content: center;
            }

            .perf-tab-btn-link {
                display: inline-block;
            }

            .perf-tab-btn {
                padding: 8px 10px;
                font-size: 11px;
                white-space: nowrap;
            }

            .detailed-progress-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .detailed-stat-card {
                padding: 15px;
            }

            .detailed-stat-card span {
                font-size: 24px;
            }

            .detailed-topic-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            /* כרטיסיית זמן לשאלה - מובייל */
            .time-stats-summary {
                grid-template-columns: 1fr;
                gap: 8px;
                margin-bottom: 20px;
            }

            .time-stat-card {
                padding: 10px 15px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                text-align: right;
            }

            .time-stat-card h3 {
                font-size: 12px;
                margin: 0;
                flex: 1;
            }

            .time-stat-card span {
                font-size: 20px;
                margin: 0 10px;
            }

            .time-stat-card small {
                font-size: 10px;
            }

            .time-detailed-section {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .time-section {
                padding: 12px;
            }

            .time-section h3 {
                font-size: 13px;
                margin-bottom: 10px;
            }

            .time-lessons-list {
                max-height: 180px;
            }

            .time-lesson-item {
                padding: 8px;
                font-size: 11px;
            }

            /* תיקון כרטיסיות הזמן הגדולות */
            .time-stats-overview {
                grid-template-columns: 1fr;
                gap: 10px;
                margin-bottom: 15px;
            }

            .time-stat-card {
                padding: 12px;
                gap: 10px;
            }

            .stat-icon {
                font-size: 1.5em;
            }

            .stat-title {
                font-size: 11px;
            }

            .stat-value {
                font-size: 16px;
            }
        }
