:root {
    --fjord-blue: #3B8DC4;
    --fjord-blue-dark: #2c6d9a;
    --fjord-blue-light: #e8f4fb;
}

/* iOS auto-zoom fix — prevents zoom on focus when font-size < 16px */
input, select, textarea {
    font-size: max(16px, 1em) !important;
}

/* Touch targets — min 44×44px on touch devices */
@media (pointer: coarse) {
    .btn, a.btn, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent text scaling across orientation changes */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Safe area insets for iPhone notch / Dynamic Island */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Top navbar */
.navbar-fjord {
    background-color: var(--fjord-blue) !important;
}

.fjord-brand {
    padding: 0;
    min-width: 0;
}

.fjord-brand img {
    display: block;
    width: min(260px, 58vw);
    height: auto;
    max-height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
}

/* Dashboard cards */
.reg-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.reg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 141, 196, 0.2);
    color: inherit;
    text-decoration: none;
}

.reg-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.reg-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.reg-card .card-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Form sections */
.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
}

.choice-list {
    display: grid;
    gap: 0.5rem;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.choice-option:hover {
    border-color: var(--fjord-blue);
    background: var(--fjord-blue-light);
}

.choice-option input {
    flex: 0 0 auto;
}

/* Resident checkboxes in Kørsel / multi-select */
.resident-check {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.1s;
}

.resident-check:hover {
    background: var(--fjord-blue-light);
}

.resident-check input[type="checkbox"] {
    margin-right: 0.75rem;
}

.busklub-badge {
    font-size: 0.7rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* Admin table */
.table-hover tbody tr:hover {
    background-color: var(--fjord-blue-light);
}

/* Status badges */
.badge-pending { background-color: #ffc107; color: #333; }
.badge-approved { background-color: #198754; }
.badge-rejected { background-color: #dc3545; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--fjord-blue), var(--fjord-blue-dark));
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.4rem;
    margin: 0;
}

/* Back button */
.btn-back {
    color: var(--fjord-blue);
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.btn-back:hover {
    color: var(--fjord-blue-dark);
}

/* Success alert */
.alert-fjord {
    background-color: var(--fjord-blue-light);
    border-color: var(--fjord-blue);
    color: var(--fjord-blue-dark);
}

.btn-fjord {
    background-color: var(--fjord-blue);
    color: #fff;
    border-radius: 10px;
}

.btn-fjord:hover {
    background-color: var(--fjord-blue-dark);
    color: #fff;
}

.registration-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf0f2;
}

.registration-row:last-child {
    border-bottom: 0;
}

.quantity-field {
    min-height: 44px;
}

.department-group {
    margin-bottom: 1rem;
}

.department-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fjord-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 1rem 0 0.5rem;
}

.validation-summary-valid {
    display: none;
}
