*{
    margin: 0;
    padding: 0;
  animation: none !important;       /* disables CSS animations */
  transition: none !important;      /* disables CSS transitions */
  opacity: 1 !important;            /* make sure elements are fully visible */
  transform: none !important;       /* reset transforms applied by animation */

}

        /* Stats section */
        .stats-bar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }

        .stat-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            text-align: center;
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(90, 101, 234, 0.1);
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
        }

        .stat-icon {
            font-size: 32px;
            margin-bottom: 16px;
            display: block;
        }

        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: #5A65EA;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 16px;
            color: #666;
            font-weight: 500;
        }

        /* Actions section */
        .actions-section {
            text-align: center;
            margin-bottom: 32px;
        }

        .add-subject-btn {
            background: linear-gradient(135deg, #5A65EA, #9C4BE7);
            color: white;
            border: none;
            border-radius: 16px;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0px 10px 25px rgba(90, 101, 234, 0.3);
        }

        .add-subject-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0px 15px 35px rgba(90, 101, 234, 0.4);
        }

        /* Subjects grid */


        .subject-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(90, 101, 234, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: block;
        }

        .subject-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #5A65EA, #9C4BE7);
        }

        .subject-card:hover {
            transform: translateY(-4px);
            box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
        }

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

        .subject-title {
            font-size: 24px;
            font-weight: 700;
            color: #333;
        }

        .chapter-badge {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            background: linear-gradient(135deg, #5A65EA, #9C4BE7);
            color: white;
        }

        .exam-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding: 16px;
            background: #f8f9fc;
            border-radius: 12px;
        }

        .countdown {
            font-size: 16px;
            font-weight: 600;
            color: #5A65EA;
        }

        .progress-section {
            margin-bottom: 16px;
        }

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

        .progress-label {
            font-size: 16px;
            color: #666;
            font-weight: 500;
        }

        .progress-percentage {
            font-size: 16px;
            font-weight: 600;
            color: #5A65EA;
        }

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

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #5A65EA, #9C4BE7);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .actions-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .action-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #5A65EA, #9C4BE7);
            color: white;
        }

        .btn-secondary {
            background: #f8f9fc;
            color: #666;
            border: 1px solid #e9ecef;
        }

        .btn-success {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
        }

        /* Form elements */
        .add-task-form {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .task-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 16px;
            background: #f8f9fc;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .task-input:focus {
            outline: none;
            border-color: #5A65EA;
            background: white;
            box-shadow: 0px 0px 0px 3px rgba(90, 101, 234, 0.1);
        }

        /* Checklist */
        .checklist {
            list-style: none;
            max-height: 300px;
            overflow-y: auto;
            gap: 8px;
        }

        .checklist-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            margin-bottom: 8px;
            background: #f8f9fc;
            border-radius: 12px;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            font-size: 16px;
        }

        .checklist-item:hover {
            background: #e9ecef;
        }

        .checklist-item.completed {
            background: #d4edda;
            border-left-color: #28a745;
            opacity: 0.8;
        }

        .checklist-item.completed .task-text {
            text-decoration: line-through;
            color: #666;
        }

        .task-checkbox {
            margin-right: 12px;
            width: 18px;
            height: 18px;
            accent-color: #5A65EA;
        }

        .task-text {
            flex: 1;
            font-size: 16px;
            color: #333;
            font-weight: 400;
        }

        .task-actions {
            display: flex;
            gap: 4px;
        }

        .task-btn {
            background: none;
            border: none;
            padding: 4px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s ease;
            font-size: 14px;
        }

        .task-btn:hover {
            background: #e9ecef;
        }

        .btn-delete { color: #dc3545; }
        .btn-edit { color: #ffc107; }
        .btn-priority { color: #9C4BE7; }

        /* Modal styles */



        .btn-cancel {
            padding: 12px 24px;
            background: #f8f9fc;
            color: #666;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .btn-cancel:hover {
            background: #e9ecef;
        }

        .btn-confirm {
            padding: 12px 24px;
            background: linear-gradient(135deg, #5A65EA, #9C4BE7);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0px 8px 20px rgba(90, 101, 234, 0.3);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .sidebar {
                width: 60px;
                padding: 20px 10px;
            }

            .sidebar h2 {
                font-size: 20px;
                margin-bottom: 32px;
            }

            .sidebar li span {
                display: none;
            }

            .sidebar .user-profile span {
                display: none;
            }

            .main {
                margin-left: 60px;
                padding: 20px;
            }

            .top-bar .time {
                font-size: 24px;
            }

            .subjects-grid {
                grid-template-columns: 1fr;
            }

            .box {
                padding: 20px;
            }

            .title {
                font-size: 24px;
            }

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

        @media (max-width: 480px) {
            .main {
                margin-left: 0;
                padding: 16px;
            }

            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .top-bar {
                flex-direction: column;
                gap: 16px;
                text-align: center;
            }

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

            .modal-content {
                margin: 20px;
                padding: 20px;
            }
        }

        /* Additional styles for existing components */
        .recommendations-container {
            background: white;
            border-radius: 20px;
            padding: 32px;
            margin: 32px 0;
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.06);
        }

        .recommendations-title {
            font-size: 24px;
            font-weight: 700;
            color: #333;
            margin-bottom: 16px;
            text-align: center;
        }

        .recommendations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 24px;
        }

        .recommendation-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(90, 101, 234, 0.1);
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.06);
        }

        .recommendation-card:hover {
            transform: translateY(-4px);
            box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
        }

        .recommendation-icon {
            font-size: 32px;
            margin-bottom: 16px;
        }

        .recommendation-name {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .recommendation-desc {
            font-size: 16px;
            color: #666;
            font-weight: 400;
        }

        /* Alert modal */
        .alert-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .alert-content {
            background: white;
            margin: 20% auto;
            padding: 32px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.15);
        }

        .alert-icon {
            font-size: 32px;
            margin-bottom: 16px;
        }

        .alert-title {
            font-size: 24px;
            font-weight: 700;
            color: #333;
            margin-bottom: 8px;
        }

        .alert-message {
            color: #666;
            margin-bottom: 24px;
            font-size: 16px;
            font-weight: 400;
        }

        .alert-btn {
            background: linear-gradient(135deg, #5A65EA, #9C4BE7);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .alert-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0px 8px 20px rgba(90, 101, 234, 0.3);
        }

        /* Congrats modal */
        .congrats-modal {
            display: none;
            position: fixed;
            z-index: 3000;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(2px);
            align-items: center;
            justify-content: center;
        }

        .congrats-content {
            background: white;
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0px 20px 40px rgba(90, 101, 234, 0.2);
            text-align: center;
            max-width: 400px;
            margin: auto;
        }

        .congrats-title {
            font-size: 24px;
            font-weight: 700;
            color: #28a745;
            margin-bottom: 16px;
        }

        .congrats-message {
            color: #333;
            font-size: 16px;
            margin-bottom: 24px;
            font-weight: 400;
        }

        .congrats-btn {
            background: linear-gradient(135deg, #5A65EA, #9C4BE7);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .congrats-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0px 8px 20px rgba(90, 101, 234, 0.3);
        }

        /* Exam date input */
        .exam-date-input {
            padding: 12px 16px;
            border-radius: 12px;
            border: 2px solid #e9ecef;
            font-size: 16px;
            background: #f8f9fc;
            color: #333;
            transition: all 0.3s ease;
            margin-right: 8px;
            font-family: 'Poppins', sans-serif;
        }

        .exam-date-input:focus {
            outline: none;
            border-color: #5A65EA;
            box-shadow: 0px 0px 0px 3px rgba(90, 101, 234, 0.1);
        }

        .edit-date-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: background 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .edit-date-btn:hover {
            background: #e9ecef;
        }

        /* Smooth scrolling */
        body {
            scroll-behavior: smooth;
        }

        /* Iframe styling */
        iframe {
            border-radius: 20px;
        }
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #334155;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.2rem;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 3rem 0 1.5rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 2px;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.7rem;
    text-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
    letter-spacing: -0.02em;
    position: relative;
}

.title::after {
    content: '📚';
    position: absolute;
    top: -10px;
    right: -50px;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.subtitle::before {
    content: '✨ ';
}

.subtitle::after {
    content: ' ✨';
}

.stats-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.2rem;
    margin-top: 1.2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: pulse 2s ease-in-out infinite;
}

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

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    animation: slideInFromRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(0);
    transition: all 0.3s ease;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
        scale: 0.8;
    }
    50% {
        transform: translateX(-10px);
        opacity: 0.7;
        scale: 1.05;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
        scale: 1;
    }
}

.stat-value.slide-update {
    animation: slideUpdate 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpdate {
    0% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(8px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background: linear-gradient(135deg, #64748b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subjects-grid {
    display: block;
        gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.subject-card {
    background: linear-gradient(135deg, #f8fafc 80%, #e0e7ef 100%);
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(59,130,246,0.08), 0 1.5px 8px rgba(219,234,254,0.10);
    border: 1.5px solid #e2e8f0;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2.2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.subject-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 1.5rem 1.5rem 0 0;
}
.subject-card:hover {
    box-shadow: 0 8px 32px rgba(59,130,246,0.18);
    transform: translateY(-2px) scale(1.01);
}
.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.exam-info {
    margin-bottom: 1.2rem;
}
.progress-section {
    margin-bottom: 1.2rem;
}
.actions-bar {
    margin-bottom: 1.2rem;
}
@media (max-width: 773px) {
.stats-bar{
    display: none;
}}
@media (max-width: 587px) {
.headingst{
    display: none;
}
    
}
@media (max-width: 1024px) {
    .container {
        padding: 1.2rem 0.5rem;
    }
    .subjects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}
@media (max-width: 700px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .subject-card {
        padding: 1.1rem 0.5rem 1rem 0.5rem;
        margin-bottom: 1.2rem;
    }
    .recommendations-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 500px) {
    .container {
        padding: 0.5rem 0.1rem;
    }
    .subject-card {
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
        border-radius: 0.7rem;
    }
    .modal-content {
        padding: 1rem 0.5rem;
        max-width: 98vw;
    }
}

.subject-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.chapter-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #dbeafe;
    color: #1e40af;
}

.exam-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.8rem;
}

.countdown {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
}

.progress-section {
    margin-bottom: 1.5rem;
}

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

.progress-label {
    font-size: 0.9rem;
    color: #64748b;
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.actions-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 0.7rem;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px #6366f133;
}

.add-task-form {
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.task-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.7rem;
    font-size: 1.05rem;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.task-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.checklist {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #f8fafc 60%, #e0e7ef 100%);
    border-radius: 0.7rem;
    transition: box-shadow 0.2s, background 0.2s;
    border-left: 4px solid transparent;
    font-size: 1.05rem;
    box-shadow: 0 1px 4px #e0e7ef;
}

.checklist-item:hover {
    background: #f1f5f9;
}

.checklist-item.completed {
    background: #f0fdf4;
    border-left-color: #10b981;
    opacity: 0.8;
}

.checklist-item.completed .task-text {
    text-decoration: line-through;
    color: #64748b;
}

.task-checkbox {
    margin-right: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #3b82f6;
}

.task-text {
    flex: 1;
    font-size: 1rem;
    color: #1e293b;
}

.task-actions {
    display: flex;
    gap: 0.3rem;
}

.task-btn {
    background: none;
    border: none;
    padding: 0.3rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.2s;
}

.task-btn:hover {
    background: #e2e8f0;
}

.btn-delete { color: #ef4444; }
.btn-edit { color: #f59e0b; }
.btn-priority { color: #8b5cf6; }

.priority-high {
    border-left-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.priority-medium {
    border-left-color: #f59e0b !important;
    background: #fffbeb !important;
}

.priority-low {
    border-left-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.ai-suggestions {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 0.8rem;
    padding: 1rem;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.ai-suggestions h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 2rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: #0369a1;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: #0369a1;
    color: white;
}

.floating-action {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.floating-action:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .main-title { font-size: 2rem; }
    .subjects-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .exam-info { flex-direction: column; gap: 0.5rem; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    padding-top: 20px;
}

.modal-content {
    background: white;
    margin: 40px auto;
    padding: 2rem 1.9rem;
    border-radius: 1.2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-confirm {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.recommendations-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 2rem;
    padding: 4rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    animation: slideInFromTop 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.recommendations-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.recommendations-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recommendations-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.recommendation-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(59,130,246,0.08), 0 1.5px 8px rgba(219,234,254,0.10);
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transition: left 0.6s ease;
}

.recommendation-card:hover::before {
    left: 100%;
}

.recommendation-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #3b82f6;
    box-shadow: 0 25px 35px -10px rgba(59, 130, 246, 0.25);
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
}

.recommendation-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.recommendation-card:hover .recommendation-icon {
    transform: scale(1.1) rotate(5deg);
}

.recommendation-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.recommendation-card:hover .recommendation-name {
    color: #3b82f6;
}

.recommendation-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 500;
}

/* Add staggered animation for cards */
.recommendation-card:nth-child(1) { animation: cardSlideIn 0.6s ease-out 0.1s both; }
.recommendation-card:nth-child(2) { animation: cardSlideIn 0.6s ease-out 0.2s both; }
.recommendation-card:nth-child(3) { animation: cardSlideIn 0.6s ease-out 0.3s both; }
.recommendation-card:nth-child(4) { animation: cardSlideIn 0.6s ease-out 0.4s both; }
.recommendation-card:nth-child(5) { animation: cardSlideIn 0.6s ease-out 0.5s both; }
.recommendation-card:nth-child(6) { animation: cardSlideIn 0.6s ease-out 0.6s both; }
.recommendation-card:nth-child(7) { animation: cardSlideIn 0.6s ease-out 0.7s both; }
.recommendation-card:nth-child(8) { animation: cardSlideIn 0.6s ease-out 0.8s both; }
.recommendation-card:nth-child(9) { animation: cardSlideIn 0.6s ease-out 0.9s both; }
.recommendation-card:nth-child(10) { animation: cardSlideIn 0.6s ease-out 1.0s both; }
.recommendation-card:nth-child(11) { animation: cardSlideIn 0.6s ease-out 1.1s both; }
.recommendation-card:nth-child(12) { animation: cardSlideIn 0.6s ease-out 1.2s both; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Modal Styling */
.subject-details-content {
    margin-bottom: 2rem;
}

.subject-info-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 1rem;
    border: 1px solid #bae6fd;
}

.subject-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.subject-description {
    font-size: 1.1rem;
    color: #0369a1;
    line-height: 1.6;
    font-weight: 500;
}

.class-selection-section,
.syllabus-selection-section {
    margin-bottom: 2rem;
}

.class-selection-section h3,
.syllabus-selection-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.class-options,
.syllabus-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.class-option,
.syllabus-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.class-option:hover,
.syllabus-option:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
}

.class-option.selected,
.syllabus-option.selected {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.3);
}

.class-number {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.class-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.class-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.syllabus-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.syllabus-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.syllabus-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.3;
}

.chapters-preview {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.chapters-preview h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.chapters-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.chapter-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    color: #374151;
    text-align: center;
    transition: all 0.2s;
}

.chapter-item:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
}

/* Enhanced Add Subject Button */
.add-subject-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    min-width: 160px;
    justify-content: center;
}

.add-subject-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.add-subject-btn:active {
    transform: translateY(-1px);
}

.add-subject-btn i {
    font-size: 1.2rem;
}

.actions-section {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    position: relative;
    margin-top: 0.5rem;
}

/* Smart Chapter Checklist Interface */
.chapter-checklist-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInFromTop 0.6s ease-out;
}

.chapter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chapter-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.chapter-subtitle {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.chapter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.chapter-stat {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.chapter-progress {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.progress-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: 800;
    color: #3b82f6;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-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%); }
}

.chapter-input-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.chapter-counter {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.chapter-input-form {
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chapter-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.7rem;
    font-size: 1.05rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.chapter-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-chapter-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.8rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-chapter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-chapter-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chapters-list {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chapters-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
}

.list-action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.list-action-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 0.8rem;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.chapter-item:hover {
    background: #f1f5f9;
}

.chapter-item.completed {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.chapter-checkbox {
    margin-right: 1rem;
    width: 1.3rem;
    height: 1.3rem;
    accent-color: #10b981;
    cursor: pointer;
}

.chapter-text {
    flex: 1;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

.chapter-item.completed .chapter-text {
    text-decoration: line-through;
    color: #64748b;
}

.chapter-actions {
    display: flex;
    gap: 0.3rem;
}

.chapter-action-btn {
    background: none;
    border: none;
    padding: 0.3rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.chapter-action-btn:hover {
    background: #e2e8f0;
}

.btn-edit { color: #f59e0b; }
.btn-delete { color: #ef4444; }

/* Alert Modal */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.alert-content {
    background: white;
    margin: 20% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.alert-message {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.alert-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1e293b;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Chapter Management within Subject Cards */
.chapter-management {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.chapter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.chapter-limit {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.chapter-progress-section {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
}

.chapter-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.chapter-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.chapter-input-section {
    margin-bottom: 1rem;
}

.chapter-input-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chapter-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s;
}

.chapter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.add-chapter-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.add-chapter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.add-chapter-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chapters-list {
    max-height: 200px;
    overflow-y: auto;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.3rem;
    background: white;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.chapter-item:hover {
    background: #f8fafc;
}

.chapter-item.completed {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.chapter-checkbox {
    margin-right: 0.8rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #10b981;
    cursor: pointer;
}

.chapter-text {
    flex: 1;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

.chapter-item.completed .chapter-text {
    text-decoration: line-through;
    color: #64748b;
}

.chapter-actions {
    display: flex;
    gap: 0.2rem;
}

.chapter-action-btn {
    background: none;
    border: none;
    padding: 0.2rem;
    border-radius: 0.2rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.8rem;
}

.chapter-action-btn:hover {
    background: #e2e8f0;
}

.btn-edit { color: #f59e0b; }
.btn-delete { color: #ef4444; }

/* Alert Modal */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.alert-content {
    background: white;
    margin: 20% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.alert-message {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.alert-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/** Add to CSS **/
.subject-aside {
  background: rgba(248,250,252,0.98);
  border-left: 2px solid #e2e8f0;
  border-radius: 0 1rem 1rem 0;
  padding: 1rem 0.5rem;
  min-width: 140px;
  max-width: 200px;
  box-shadow: none;
  font-size: 0.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.checklist {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.2rem 0.1rem;
  margin-bottom: 0.1rem;
  border-radius: 0.3rem;
  background: none;
}

.task-checkbox {
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.4rem;
}

.task-text {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 765px) {
.stat-card{
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    min-width: 90vh;       /* full height */
}
.stat-value,.stat-label{
    display: none;
}
}

@media (max-width: 700px) {
  .subject-card {
    grid-template-columns: 1fr;
  }
  .subject-aside {
    border-left: none;
    border-top: 2px solid #e2e8f0;
    border-radius: 0 0 1rem 1rem;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-top: 1rem;
  }
}

.footer {
  width: 100%;
  text-align: center;
  padding: 1.2rem 0 1.2rem 0;
  color: #64748b;
  font-size: 1rem;
  background: transparent;
  letter-spacing: 0.03em;
  margin-top: 2rem;
}

/* Add to CSS */
.congrats-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
   top: 0;
    width: 100vw;
    height: 100vh;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
}
.congrats-modal .congrats-content {
  background: #fff;
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(59,130,246,0.18);
  text-align: center;
  max-width: 350px;
  margin: auto;
}
.congrats-modal .congrats-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 1rem;
}
.congrats-modal .congrats-message {
  color: #334155;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.congrats-modal .congrats-btn {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.congrats-modal .congrats-btn:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
body{
    scroll-behavior: smooth;
}
.exam-date-input {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    background: #f8fafc;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-right: 0.2rem;
}
.exam-date-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f633;
}
.edit-date-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.3rem;
    border-radius: 0.4rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edit-date-btn:hover {
    background: #e0e7ef;
}


  .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f2f57;
    padding: 12px 20px;
    color: white;
  }

  .ai-avatar {
    font-size: 24px;
    margin-right: 10px;
  }

  .ai-title {
    flex-grow: 1;
    font-weight: bold;
    font-size: 18px;
  }

  .clear-chat-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }

  .chat-window {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
  }

  .message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 15px;
    max-width: 80%;
    clear: both;
    word-wrap: break-word;
  }

  .user-message {
    background: #d0e8ff;
    float: right;
    text-align: right;
  }

  .ai-message {
    background: #f0f0f0;
    float: left;
  }

  .chat-input-container {
    display: flex;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
  }

  #userInput {
    flex-grow: 1;
    border: none;
    padding: 15px;
    font-size: 16px;
    outline: none;
  }

  #sendBtn {
    background: #1f2f57;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
    
  }

  #sendBtn:hover {
    background: #2a3f75;
  }
          .kid-mode-button {
            background: linear-gradient(45deg, #FF9A8B, #FF6B95, #FF8E53);
            color: white !important;
            border: none;
            padding: 8px 16px !important;
            border-radius: 25px !important;
            font-weight: bold;
              cursor: pointer;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
            display: inline-flex;
            align-items: center;
            font-size: 1rem;
            text-decoration: none;
            margin: 0 !important;
        }

        .kid-mode-button:hover {
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
            background: linear-gradient(45deg, #FF8E53, #FF6B95, #FF9A8B);
        }

        /* Logo animations */

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        .logo-text {
            animation: colorChange 5s infinite;
        }

        @keyframes colorChange {
            0% { color: rgba(25, 90, 202, 0.815); }
            50% { color: #195acd; }
            100% { color: rgba(25, 90, 202, 0.815); }
        }

        /* Topic card animations */
        .topic-card {
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .topic-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .topic-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                120deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent
            );
            transition: 0.5s;
        }

        .topic-card:hover::before {
            left: 100%;
        }

        .topic-card h3 {
            transition: transform 0.3s ease;
        }

        .topic-card:hover h3 {
            transform: scale(1.1);
        }

        /* Search section animations */
        .search-section {
            animation: fadeIn 1s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        #searchInput {
            transition: all 0.3s ease;
        }

        #searchInput:focus {
            transform: scale(1.02);
            box-shadow: 0 0 15px rgba(25, 90, 202, 0.2);
        }

        #searchButton {
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        #searchButton:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(25, 90, 202, 0.3);
        }

        /* Section animations */
        section {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Contact section animations */
        #contact nav a {
            transition: all 0.3s ease;
        }

        #contact nav a:hover {
            transform: translateY(-5px);
            color: #195acd !important;
        }

        #contact nav a i {
            transition: transform 0.3s ease;
        }

        #contact nav a:hover i {
            transform: scale(1.2);
        }

        /* Mobile Navigation Styles */
        @media (max-width: 880px) {
            .logo-text {
                display: none;
            }



            @keyframes slideIn {
                from { transform: translateX(100%); opacity: 0; }
                to { transform: translateX(0); opacity: 1; }
            }


        }

        /* Settings icon specific styles */
        .settings-menu {
            display: flex;
            align-items: center;
        }

        .settings-menu i {
            padding: 0.5rem;
            transition: transform 0.3s ease;
        }

        .settings-menu i:hover {
            transform: rotate(180deg);
        }

        /* Add these new animations to the existing styles */
        
        /* 3D Flip effect for topic cards */
        .topic-card {
            perspective: 1000px;
            transform-style: preserve-3d;
        }

        .topic-card:hover {
            transform: translateY(-10px) scale(1.02) rotateX(5deg);
        }

        /* Glowing effect for search button */
        #searchButton {
            position: relative;
            overflow: hidden;
        }

        #searchButton::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            transform: scale(0);
            transition: transform 0.5s ease-out;
        }

        #searchButton:hover::before {
            transform: scale(1);
        }

        /* Typing animation for search placeholder */
        #searchInput::placeholder {
            animation: typing 3s infinite;
            white-space: nowrap;
            overflow: hidden;
        }

        @keyframes typing {
            0% { content: "Search for topics..."; }
            50% { content: "Explore mathematics..."; }
            100% { content: "Search for topics..."; }
        }

        /* Floating animation for social icons */
        #contact nav a {
            animation: floatIcon 3s ease-in-out infinite;
            animation-delay: calc(var(--i) * 0.2s);
        }

        @keyframes floatIcon {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* Gradient border animation for topic cards */
        .topic-card {
            position: relative;
            background: white;
            border-radius: 10px;
            overflow: hidden;
        }

        .topic-card::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #195acd, #FF6B95, #FF8E53, #195acd);
            background-size: 400% 400%;
            z-index: -1;
            border-radius: 12px;
            animation: gradientBorder 3s ease infinite;
        }

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

        /* Shake animation for kid mode button */
        .kid-mode-button {
            animation: shake 2s infinite;
        }

        @keyframes shake {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-5deg); }
            75% { transform: rotate(5deg); }
        }

        /* Pulse animation for section titles */
        h2 {
            position: relative;
        }

        /* Scroll reveal animation for sections */
        section {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Hover effect for navigation links */
        .nav-menu li a {
            position: relative;
            overflow: hidden;
        }

        .nav-menu li a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }

        .nav-menu li a:hover::before {
            left: 100%;
        }

        /* Rotating background for kid mode button */
        .kid-mode-button {
            background-size: 200% 200%;
            animation: gradientBG 3s ease infinite;
        }

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

        /* Bounce animation for search results */
        #searchResults {
            animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes bounceIn {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); opacity: 0.8; }
            70% { transform: scale(0.9); opacity: 0.9; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Glowing effect for footer */
        footer {
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(25,90,202,0.1) 0%, transparent 70%);
            animation: rotate 10s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f9f9f9;
            position: relative;
        }

        body::before {
            content: '+ - ÷ ×';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            font-size: 200px;
            color: rgba(25, 90, 205, 0.05);
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
            z-index: -1;
        }

        /* Loading animations for AI Assistant */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

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

        @keyframes slideInUp {
            from { 
                opacity: 0; 
                transform: translateY(30px) scale(0.95); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
        }

        @keyframes fadeInScale {
            from { 
                opacity: 0; 
                transform: scale(0.9); 
            }
            to { 
                opacity: 1; 
                transform: scale(1); 
            }
        }

        @keyframes fadeInLeft {
            from { 
                opacity: 0; 
                transform: translateX(-20px); 
            }
            to { 
                opacity: 1; 
                transform: translateX(0); 
            }
        }

        #aiChatHistory {
            background: #f4f8ff;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1rem;
            min-height: 90px;
            max-height: 300px;
            overflow-y: auto;
            box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        }
        .chat-bubble {
            margin-bottom: 1rem;
            padding: 0.7rem 1rem;
            border-radius: 10px;
            animation: fadeInScale 0.5s;
        }
        .chat-bubble.user {
            background: #e3f0ff;
            text-align: right;
        }
        .chat-bubble.ai {
            background: #fff;
            color: #23213a;
            align-self: flex-start;
            border-radius: 20px;
            border-left: 6px solid;
            border-image: linear-gradient(180deg, #5A65EA 0%, #9C4BE7 100%) 1;
            box-shadow: 0 10px 25px rgba(90,101,234,0.08);
            font-family: 'Poppins', Arial, sans-serif;
            font-size: 1.05rem;
            padding: 20px 24px;
            margin-bottom: 0.7em;
            margin-top: 0.2em;
            transition: box-shadow 0.2s, transform 0.2s;
            word-break: break-word;
            position: relative;
        }
        .chat-bubble.ai:hover {
            box-shadow: 0 16px 32px rgba(90,101,234,0.13);
            transform: translateY(-2px) scale(1.02);
        }
        .ai-label {
            font-weight: 700;
            color: #5A65EA;
            font-size: 1rem;
            margin-bottom: 0.3em;
            display: block;
            letter-spacing: 0.01em;
        }
        .user-label, .ai-label {
            font-weight: bold;
            color: #007bff;
            margin-right: 0.5em;
        }
        .copy-btn {
            background: #007bff;
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 0.3em 0.7em;
            margin-top: 0.5em;
            cursor: pointer;
            font-size: 0.9em;
            transition: background 0.2s;
        }
        .copy-btn:hover {
            background: #0056b3;
        }
        .ai-loading-spinner {
            border: 4px solid #e3f0ff;
            border-top: 4px solid #007bff;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        .chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 18px 18px 0 0;
            padding: 1rem 1.2rem 1rem 1rem;
            color: #fff;
            font-size: 1.2rem;
            font-weight: 600;
            position: relative;
        }
        .ai-avatar {
            width: 38px;
            height: 38px;
            background: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.7rem;
            margin-right: 0.7rem;
            box-shadow: 0 2px 8px rgba(25,90,205,0.10);
        }
        .ai-title {
            flex: 1;
            font-size: 1.1rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.5px;
        }
        .clear-chat-btn {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.3rem;
            cursor: pointer;
            margin-left: 0.7rem;
            transition: color 0.2s;
            border-radius: 6px;
            padding: 0.2em 0.5em;
        }
        .clear-chat-btn:hover {
            background: #f8d7da;
            color: #dc3545;
        }
        .chat-history {
            flex: 1;
            overflow-y: auto;
            padding: 1.2rem 1rem 1rem 1rem;
            background: #f7f9fc;
            min-height: 180px;
            max-height: 340px;
            display: flex;
            flex-direction: column;
            gap: 0.7rem;
            border-bottom: 1px solid #e3e8f0;
        }
        .chat-bubble {
            max-width: 80%;
            padding: 0.8em 1.1em;
            border-radius: 16px;
            font-size: 1rem;
            line-height: 1.6;
            box-shadow: 0 1px 4px rgba(25,90,205,0.04);
            position: relative;
            word-break: break-word;
            margin-bottom: 0.1em;
            animation: fadeInScale 0.5s;
        }
        .chat-bubble.user {
            background: linear-gradient(90deg, #e3f0ff 0%, #cbe3ff 100%);
            color: #195acd;
            align-self: flex-end;
            border-bottom-right-radius: 6px;
            text-align: right;
        }
        .chat-bubble.ai {
            background: #fff;
            color: #333;
            align-self: flex-start;
            border-bottom-left-radius: 6px;
            border-left: 4px solid #667eea;
            text-align: left;
        }
        .user-label, .ai-label {
            font-weight: bold;
            font-size: 0.95em;
            margin-bottom: 0.2em;
            display: block;
        }
        .copy-btn {
            background: #007bff;
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 0.3em 0.7em;
            margin-top: 0.5em;
            cursor: pointer;
            font-size: 0.9em;
            transition: background 0.2s;
        }
        .copy-btn:hover {
            background: #0056b3;
        }
        .ai-loading-spinner {
            border: 4px solid #e3f0ff;
            border-top: 4px solid #007bff;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        .chat-input-bar {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            padding: 1rem 1rem 1.1rem 1rem;
            background: #fff;
            border-radius: 0 0 18px 18px;
            border-top: 1px solid #e3e8f0;
            position: relative;
        }
        .chat-input-bar input[type="text"] {
            flex: 1;
            padding: 0.8em 1em;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            outline: none;
            transition: border 0.2s;
            background: #f7f9fc;
        }
        .chat-input-bar input[type="text"]:focus {
            border: 2px solid #667eea;
            background: #fff;
        }
        .send-btn {
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 0.7em 1.3em;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            box-shadow: 0 2px 8px rgba(25,90,205,0.07);
        }
        .send-btn:hover {
            background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
        }
        #aiQuery{
            font-size: 15px;
            font-weight: 600;
            background: transparent;
            color: #000;
            font-family: 'Poppins', sans-serif;
        }
        @media (max-width: 600px) {
            .ai-assistant-section.chat-app-card {
                width: 100vw;
                max-width: 98vw;
                min-width: 0;
                border-radius: 10px;
            }
            .chat-header, .chat-input-bar {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
            .chat-history {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
        }







/*timer*/
  .timer-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    padding: 2.5rem 2rem;
    border-radius: 1.8rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 360px;
    max-width: 95vw;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

.timer-display {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111827;
    letter-spacing: 1.5px;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.input-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.input-col label {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4f46e5;
}

.input-group input {
    width: 58px;
    padding: 0.5rem;
    font-size: 1.1rem;
    border: 1.5px solid #c7d2fe;
    border-radius: 0.6rem;
    text-align: center;
    background: rgba(241, 245, 249, 0.7);
    color: #111827;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.35);
}

.timer-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.timer-buttons button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    transition: transform 0.15s ease, background 0.2s ease;
}

.timer-buttons button:hover:not(:disabled) {
    background: linear-gradient(90deg, #3b82f6, #4f46e5);
    transform: translateY(-2px);
}

.timer-buttons button:disabled {
    background: #e0e7ff;
    cursor: not-allowed;
    opacity: 0.6;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(224, 242, 254, 0.6);
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    width: 0%;
    transition: width 0.3s ease;
}

.end-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInEnd 0.6s forwards;
}

@keyframes fadeInEnd {
    to { opacity: 1; }
}

.purpose-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.purpose-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.purpose-input {
    width: 90%;
    max-width: 380px;
    padding: 1rem;
    font-size: 1.1rem;
    border: 1.5px solid #c7d2fe;
    border-radius: 0.7rem;
    background: rgba(241, 245, 249, 0.7);
    transition: border 0.2s, box-shadow 0.2s;
}

.purpose-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.35);
}

.purpose-enter-btn {
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #3b82f6, #4f46e5);
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    transition: transform 0.15s ease, background 0.2s ease;
}

.purpose-enter-btn:hover {
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    transform: translateY(-2px);
}

.purpose-display {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    background: rgba(241, 245, 249, 0.7);
    border: 1.5px solid #c7d2fe;
    border-radius: 1rem;
    padding: 0.6rem 1rem;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.5s, transform 0.5s;
}
/* Chat mode buttons container */
.chat-header button {
  margin-left: 0.5rem;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  color: #fff;
}

/* Specific button colors */
#btnEquation {
  background: #4caf50; /* green */
}

#btnMath {
  background: #2196f3; /* blue */
}

#btnGeneral {
  background: #ff9800; /* orange */
}

/* Hover effect */
.chat-header button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Active/selected state */
.chat-header button.active {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  border: 2px solid #fff;
}

.purpose-display-animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.timer{
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    min-height: 100vh;       /* full height */
}