/* =============================================
   IFG Disciplinas — Platform Styles
   ============================================= */

body {
    min-height: 100vh;
    padding-top: 56px; /* fixed navbar height */
}

/* ---- Sidebar ---- */
.sidebar {
    width: 250px;
    min-height: calc(100vh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 1020;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    color: var(--bs-body-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: var(--bs-tertiary-bg);
}

.sidebar .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}

/* ---- Main content ---- */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-content.has-sidebar {
    margin-left: 250px;
}

/* ---- Responsive: hide sidebar on small screens ---- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content.has-sidebar {
        margin-left: 0;
    }
}

/* ---- Quiz-specific ---- */
.question-card {
    border-left-width: 4px;
}

.question-card.border-success {
    border-left-color: #198754 !important;
}

.question-card.border-danger {
    border-left-color: #dc3545 !important;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.card-header {
    font-size: 0.95rem;
}

.table th {
    white-space: nowrap;
}

/* ---- Sidebar backdrop on mobile ---- */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1019;
}

.sidebar-backdrop.show {
    display: block;
}
