/* ==========================================================
   Crime Stoppers Serbia — Base Styles
   ========================================================== */

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* High-contrast accessible focus styles */
:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* Public page form container — max 720px as per spec */
.form-container {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* Step progress indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step-indicator .step {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #6c757d;
}

.step-indicator .step.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.step-indicator .step.completed {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.step-indicator .step-line {
    width: 2rem;
    height: 2px;
    background: #dee2e6;
    align-self: center;
}

.step-indicator .step-line.completed {
    background: #198754;
}

/* Reference code display */
.reference-code {
    font-family: "Courier New", Courier, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #0d6efd;
    background: #f8f9fa;
    border: 2px dashed #0d6efd;
    padding: 1rem 2rem;
    display: inline-block;
    border-radius: 0.5rem;
}

/* Status badges */
.badge-new { background-color: #0d6efd; }
.badge-under_review { background-color: #ffc107; color: #212529; }
.badge-investigating { background-color: #0dcaf0; color: #212529; }
.badge-resolved { background-color: #198754; }
.badge-closed { background-color: #6c757d; }

/* Priority badges */
.badge-priority-low { background-color: #6c757d; }
.badge-priority-medium { background-color: #0dcaf0; color: #212529; }
.badge-priority-high { background-color: #fd7e14; }
.badge-priority-critical { background-color: #dc3545; }

/* Card hover for category selection */
.card-selectable {
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card-selectable:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.card-selectable.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Honeypot field — visually hidden but accessible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Message thread */
.message-thread .message {
    max-width: 80%;
    margin-bottom: 0.75rem;
}

.message-thread .message-admin {
    margin-right: auto;
}

.message-thread .message-tipster {
    margin-left: auto;
}

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

    .reference-code {
        border: 2px solid #000;
        color: #000;
    }
}
