/* Fonts & Base */
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    margin: 0;
    color: #333;
}

.teacher-dashboard {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

/* Top Bar */
.top-bar {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 40px;
    width: auto;
}

.logo-area h1 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
}

.top-actions .btn {
    margin-left: 10px;
    background: #007bff;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.top-actions .btn.logout {
    background: #dc3545;
}

.top-actions .btn:hover {
    background: #0056b3;
}

/* Stat Cards */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1 1 240px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 2rem;
    color: #007bff;
}

.stat-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.stat-card p {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 5px 0 0 0;
}

/* Bottom Section */
.bottom-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.section-title p {
    font-size: 0.95rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-section {
        flex-direction: column;
    }

    .top-actions .btn {
        margin: 8px 0 0 0;
    }
}

.error {
  color: red;
  margin-bottom: 10px;
  font-weight: bold;
}


/*-- Question bank Css */
.question-bank-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.question-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.question-filter-form select,
.question-filter-form label {
    flex: 1 1 150px;
}

.question-filter-form .btn {
    background-color: #0052cc;
    color: #fff;
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.question-bank-table {
    width: 100%;
    border-collapse: collapse;
}

.question-bank-table th,
.question-bank-table td {
    border: 1px solid #e2e2e2;
    padding: 10px;
    text-align: left;
}

.question-bank-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

@media (max-width: 768px) {
    .question-filter-form {
        flex-direction: column;
    }
}


.unit-header {
    background: #f5f5f5;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    border-left: 5px solid #0073aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.unit-content {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: none;
}
.unit-content.show {
    display: block;
}
.question-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.question-tabs li {
    padding: 8px 15px;
    background: #eee;
    margin-right: 5px;
    cursor: pointer;
}
.question-tabs li.active {
    background: #0073aa;
    color: #fff;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
.questions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.questions-table th, .questions-table td {
    border: 1px solid #ddd;
    padding: 8px;
}
