/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark gray text */
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef); /* Soft pastel gradient */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-nav .menu-icon,
.top-nav .search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #28A745; /* Green accent */
}

.top-nav .cta-button {
    background-color: #28A745; /* Green accent */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Statistics Section */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef); /* Soft pastel gradient */
}

.stats-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    width: calc(50% - 10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stats-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stats-card .metric {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28A745; /* Green accent */
}

.stats-card .label {
    font-size: 1rem;
    color: #6c757d; /* Light gray */
}

/* Popular Exams Section */
.popular-exams {
    padding: 20px;
    background: #ffffff;
}

.popular-exams h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333333;
}

.exam-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.exam-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    width: calc(50% - 10px);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exam-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #17a2b8; /* Light blue */
}

.exam-item .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333333;
}

.exam-item .description {
    font-size: 0.9rem;
    color: #6c757d; /* Light gray */
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
}

.bottom-nav a {
    text-decoration: none;
    color: #6c757d; /* Light gray */
    font-size: 1rem;
    text-align: center;
}

.bottom-nav a.active {
    color: #28A745; /* Green accent */
}

/* Call-to-Action Button */
.cta-button {
    background-color: #28A745; /* Green accent */
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    margin: 20px auto;
    display: block;
    width: fit-content;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 20px;
}

.performance-chart {
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.chart-container {
    width: 100%;
    height: 300px;
}

.category-performance {
    margin-top: 20px;
}

.category-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    font-size: 1.2rem;
    color: #333333;
}

.category-card p {
    font-size: 1rem;
    color: #6c757d;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark gray text */
}

/* Header Styles */
/* Header Styles */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.branding {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
}

.logout-section {
    margin-left: auto; /* Pushes the logout button to the right */
}

.cta-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.menu-icon,
.search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
}

.side-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 250px;
}

.side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

.side-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.side-menu a:hover {
    color: #007BFF;
}

@media (max-width: 768px) {
    .side-menu {
        display: block; /* Show side menu on smaller screens */
    }
}

/* JavaScript Toggle for Side Menu */
.side-menu.active {
    display: block;
}

/* Quiz_Container */
.quiz-container {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
    position: relative;
}

.progress-bar {
    margin-bottom: 20px;
    text-align: center;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-button {
    background-color: #28A745;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.quiz-question {
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.submit-answer-btn {
    background-color: #28A745;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-quiz-btn {
    background-color: #28A745;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.result-message {
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.result-message .correct {
    color: green;
}

.result-message .incorrect {
    color: red;
}

.ask-doubt-section {
    margin-top: 20px;
}

#doubt-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#clarification-response {
    margin-top: 10px;
}

/* Chatbot Styles */
#chat-container {
    width: 50%; /* Reduced from 300px */
    height: 200px; /* Reduced from 400px */
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 80px; /* Adjusted to position above the footer */
    right: 20px;
    display: flex;
    flex-direction: column;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 5px; /* Reduced padding */
    font-size: 0.8rem; /* Reduced font size */
}

.message {
    margin-bottom: 5px; /* Reduced margin */
    padding: 4px 6px; /* Reduced padding */
    border-radius: 5px;
    max-width: 90%;
}

.message.user {
    background-color: #d1e7dd;
    align-self: flex-end;
}

.message.bot {
    background-color: #f8d7da;
    align-self: flex-start;
}

#chat-input {
    display: flex;
    padding: 5px; /* Reduced padding */
    border-top: 1px solid #ccc;
}

#user-input {
    flex: 1;
    padding: 4px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px; /* Reduced margin */
    font-size: 0.8rem; /* Reduced font size */
}

#send-button {
    background-color: #28A745;
    color: #ffffff;
    padding: 4px 8px; /* Reduced padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem; /* Reduced font size */
}


    .subcategory-container {
        max-width: 600px;
        margin: 50px auto;
        padding: 40px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        animation: fadeIn 1.5s ease-in-out;
    }

    .subcategory-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .subcategory-list li {
        background: #ffffff;
        border: 1px solid #ddd;
        padding: 12px 20px;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: all 0.3s ease-in-out;
    }

    .subcategory-list li a {
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        color: #3B82F6;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .subcategory-list li a::before {
        content: "\f02d"; /* FontAwesome book icon */
        font-family: "FontAwesome";
        font-size: 1.2rem;
        color: #3B82F6;
    }

    .subcategory-list li:hover {
        transform: scale(1.05);
        background: #f3f4f6;
        box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

/* Testimonial Section Styles */
.testimonial-section {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 50px 20px;
    text-align: center;
}

.testimonial-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
    width: 80px; /* Optimal size for placeholder image */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.testimonial-card strong {
    color: #007BFF;
}