/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f9fa;
}

/* Top Bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0056b3;
    padding: 10px 15px;
    color: white;
}

.title {
    font-weight: bold;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 10px;
}

.btn, .dropbtn {
    background: #ffc107;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.btn:hover, .dropbtn:hover {
    background: #e0a800;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #f1f1f1;
}

.show {
    display: block;
}

/* Chapters */
main {
    padding: 20px;
}

.chapter {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chapter h2 {
    margin-top: 0;
}

.notes-btn, .mcq-btn {
    display: inline-block;
    margin-right: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

.notes-btn {
    background: #28a745;
}

.mcq-btn {
    background: #17a2b8;
}

.notes-btn:hover {
    background: #218838;
}

.mcq-btn:hover {
    background: #138496;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        flex-direction: column;
        width: 100%;
    }
    .dropdown-content {
        position: static;
        width: 100%;
    }
}
