body {
    background-color: #f5f5f5;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100% - 2rem, 420px);
}

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.incident-thumb {
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.incident-thumb:hover {
    transform: scale(1.05);
}

/* Print styles */
@media print {
    .navbar, footer, .btn, .pagination, form, .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    body {
        background: white;
    }

    .container-fluid {
        max-width: 100%;
    }

    img {
        max-width: 100%;
    }
}

/* ROI Canvas */
#roi-canvas, #calibration-canvas {
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: block;
}

#trend-canvas {
    width: 100%;
    max-width: 100%;
}

.incident-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.incident-description {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.print-report {
    background: #fff;
    padding: 1rem;
}

.analysis-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.analysis-summary-card span {
    color: #6c757d;
    font-size: 0.85rem;
}

.analysis-summary-card strong {
    font-size: 1.5rem;
}

.analysis-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    min-height: 180px;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
}

.analysis-bar-column {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    color: #6c757d;
    font-size: 0.7rem;
}

.analysis-bar-track {
    display: flex;
    width: 100%;
    height: 130px;
    align-items: flex-end;
    background: #e9ecef;
    border-radius: 0.15rem;
}

.analysis-bar {
    width: 100%;
    min-height: 0;
    background: #0d6efd;
    border-radius: 0.15rem 0.15rem 0 0;
}

.analysis-table th,
.analysis-table td {
    padding: 0.35rem 0.5rem;
}

.print-incident {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
    break-inside: avoid;
}

/* Stats cards */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Toast */
.toast {
    min-width: 250px;
}
