/* Main styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar styles */
.navbar-brand i {
    margin-right: 0.5rem;
}

/* Card styles */
.card {
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

/* Table styles */
.table th {
    background-color: #f8f9fa;
}

/* Status badges */
.badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

/* Footer styles */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 1rem 0;
}

/* Alert styles */
.alert {
    margin-bottom: 1rem;
}

/* Button styles */
.btn {
    margin-right: 0.5rem;
}

/* Dashboard stats */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Scanner styles */
.scanner-progress {
    height: 1.5rem;
}

/* Evidence styles */
.evidence-card {
    position: relative;
}

.evidence-card .actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Control styles */
.control-status {
    width: 100px;
    text-align: center;
}

/* Profile styles */
.profile-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        margin-bottom: 1rem;
    }
}

/* Policy editor — section nav strip and baseline-fallback textarea (R2) */
.baseline-fallback {
    background-color: #f8f9fa;
}

.policy-section-chip:hover {
    text-decoration: underline !important;
}

.policy-section-chip .chip-icon {
    margin-right: 0.25rem;
    font-weight: bold;
}

/* Compliance details panel — per-section gap/recommendation display */
.compliance-details-panel {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    max-height: 32rem;
    overflow-y: auto;
    user-select: text;   /* keep text copy-pastable */
}

.compliance-recommendations {
    /* white-space:pre-wrap is set inline in the template so Jinja-rendered
       value preserves newlines; also applied by renderPanel via textContent */
    white-space: pre-wrap;
    word-break: break-word;
}

/* Admin action toast — fixed top-right overlay (nit #110) */
.toast-container--admin {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1050;
    min-width: 280px;
    max-width: 480px;
}