body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease-in-out;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 80px;
}

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

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-header h2 {
    width: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
}

.nav-item {
    margin: 10px 0;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-item a:hover {
    background-color: #555;
}

.nav-item.active a {
    background-color: #555;
    font-weight: bold;
}

.nav-item i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.content {
    flex-grow: 1;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}

.content h2 {
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.content-section.hidden {
    display: none;
}

.stats-container {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    text-align: center;
    margin-top: 20px;
}

.stat-box {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 45%;
}

.stat-box h3 {
    margin-top: 0;
    color: #0056b3;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #007BFF;
    margin: 0;
}

form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="password"],
select,
textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

.message {
    margin-top: 10px;
    font-weight: bold;
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px;
    border-left: 5px solid #007BFF;
    border-radius: 4px;
}

.quiz-management {
    display: flex;
    gap: 10px;
    align-items: center;
}
