﻿.mode-toggle {
    margin-bottom: 10px;
    justify-content: flex-start; /* aligns to the left */
    display: flex;
    align-items: flex-start;
}

.mode-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
}

    .mode-btn.active {
        background: linear-gradient(to right, #667eea, #764ba2);
        color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }

    .mode-btn:hover {
        background: linear-gradient(to right, #d4fc79, #96e6a1);
        transform: translateY(-1px);
    }

/* General Page Styling */
.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Topic Sections */
#topic-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.topic-section {
    background: #ffffff;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    border-left: 6px solid #5c6bc0;
    transition: transform 0.2s;
}

    .topic-section:hover {
        transform: translateY(-2px);
    }

    /* Section Headers */
    .topic-section h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: #3f51b5;
    }

    /* Paragraph & Lists */
    .topic-section p,
    .topic-section ul,
    .topic-section li {
        font-size: 1rem;
        color: #333;
        line-height: 1.6;
    }

    .topic-section ul {
        list-style: disc;
        margin-left: 1.2rem;
    }

/* Code Styling */
pre code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    display: block;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* PDF Button */
.pdf-download-btn {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

    .pdf-download-btn:hover {
        background: linear-gradient(to right, #0072ff, #00c6ff);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .topic-section h3 {
        font-size: 1.2rem;
    }

    .topic-section p,
    .topic-section ul,
    .topic-section li {
        font-size: 0.95rem;
    }

    pre code {
        font-size: 0.8rem;
    }

    .pdf-download-btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}
body {
    background: linear-gradient(to bottom right, #f1f4f9, #dff1ff);
    font-family: 'Segoe UI', sans-serif;
}



.mcq-question ul {
    list-style: none;
    padding-left: 0;
}

.mcq-question li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f4f4f4;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #ccc;
}

    .mcq-question li:hover {
        background-color: #e2e2ff;
    }

    .mcq-question li.correct {
        background-color: #c8f7c5;
        border-color: green;
        font-weight: bold;
    }

    .mcq-question li.wrong {
        background-color: #f8d7da;
        border-color: red;
    }

    .mcq-question li.disabled {
        opacity: 0.6;
        pointer-events: none;
    }
