/*
 * UIkit overrides och projektspecifika tillägg
 */

body {
    background: #f5f7fb;
}

main, .main-content {
    padding-bottom: 48px;
}

.uk-card.uk-card-default {
    border-radius: 8px;
}

.uk-table {
    border-radius: 8px;
    overflow: hidden;
}

.uk-form-stacked .uk-form-label {
    font-weight: 600;
}

.uk-section-muted {
    background-color: #eef1f8;
}

.booking-row-unverified {
    background: #fff7df;
}

.booking-row-unverified td {
    border-color: #ffe3a3;
}

/* --- Bootstrap class bridge (UIkit look & feel) --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
    row-gap: 16px;
}

.row > [class^="col-"],
.row > [class*=" col-"] {
    padding-left: 12px;
    padding-right: 12px;
    flex: 0 0 auto;
    width: 100%;
}

.col-md-12 { width: 100%; }

@media (min-width: 768px) {
    .col-md-8 { width: 66.666%; }
    .col-md-6 { width: 50%; }
    .col-md-4 { width: 33.333%; }
    .col-md-3 { width: 25%; }
    .col-md-2 { width: 16.666%; }
}

@media (min-width: 992px) {
    .col-lg-6 { width: 50%; }
    .col-lg-5 { width: 41.666%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-3 { width: 25%; }
    .col-lg-2 { width: 16.666%; }
}

.g-3 {
    gap: 1.25rem;
}

.gap-2 {
    gap: 0.75rem !important;
}

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-lg-row { }
.flex-column-reverse { flex-direction: column-reverse !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-lg-start { }
.align-items-lg-center { }
.ms-auto { margin-left: auto !important; }

@media (min-width: 992px) {
    .flex-lg-row { flex-direction: row !important; }
    .align-items-lg-start { align-items: flex-start !important; }
    .align-items-lg-center { align-items: center !important; }
}

.w-100 { width: 100% !important; }
.w-50 { width: 50% !important; }

.mt-5 { margin-top: 3rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 0.75rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-0 { margin-top: 0 !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 0.75rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-1 { margin-left: 0.5rem !important; }
.ms-2 { margin-left: 0.75rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-lg-2 { margin-left: 0 !important; }
.me-2 { margin-right: 0.75rem !important; }

@media (min-width: 768px) {
    .mb-md-0 { margin-bottom: 0 !important; }
}

.mb-lg-0 { }

@media (min-width: 992px) {
    .ms-lg-2 { margin-left: 0.75rem !important; }
    .mb-lg-0 { margin-bottom: 0 !important; }
}

.text-center { text-align: center !important; }
.text-muted { color: #6c7785 !important; }
.text-dark { color: #1d2533 !important; }
.text-white { color: #ffffff !important; }

@media (min-width: 992px) {
    .text-lg-start { text-align: left !important; }
}

.fw-bold { font-weight: 600 !important; }

.lead {
    font-size: 1.1rem;
    color: #4a5568;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    background: #e9eef7;
    color: #1f2a44;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: #d8e1f2;
    color: #1f2a44;
    text-decoration: none;
}

.btn-primary {
    background: #1e87f0;
    border-color: #1e87f0;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1664b7;
    border-color: #1664b7;
    color: #ffffff;
}

.btn-success {
    background: #32d296;
    border-color: #32d296;
    color: #ffffff;
}

.btn-danger {
    background: #f0506e;
    border-color: #f0506e;
    color: #ffffff;
}

.btn-secondary {
    background: #dee3ed;
    border-color: #cfd7e4;
    color: #1d2533;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #cdd4e2;
    border-color: #bec8da;
    color: #1d2533;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.7);
    color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    display: block;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #1d2533;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e87f0;
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.15);
}

.form-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #8a94a6 50%), linear-gradient(135deg, #8a94a6 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border: 1px solid #a8b0bf;
    border-radius: 4px;
    accent-color: #1e87f0;
}

.form-check-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.875rem;
    color: #6c7785;
}

.profile-twofa-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: normal;
    max-width: 100%;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-info {
    background: #e6f0ff;
    border-color: #c7ddff;
    color: #0f3d8c;
}

.alert-success {
    background: #e9f9f1;
    border-color: #bfe7d3;
    color: #116a3d;
}

.alert-danger {
    background: #fdeaea;
    border-color: #f4c4c4;
    color: #a42828;
}

.alert-warning {
    background: #fff7dd;
    border-color: #ffe3a3;
    color: #856404;
}

.badge,
.badge.bg-success,
.badge.bg-warning,
.badge.bg-danger {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.badge.bg-success { background: #32d296; }
.badge.bg-warning { background: #f7b924; color: #1d2533; }
.badge.bg-danger { background: #f0506e; }

.bg-primary { background: #1e87f0 !important; color: #ffffff !important; }
.bg-success { background: #32d296 !important; color: #ffffff !important; }
.bg-light { background: #f5f7fb !important; }
.bg-warning { background: #f7b924 !important; color: #1d2533 !important; }

.text-white a { color: inherit; }

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #ffffff;
}

.table th,
.table td {
    padding: 0.75rem;
    border: 1px solid #e3e7ef;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fc;
}

.table-bordered {
    border: 1px solid #dce2ef;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-warning {
    background: #fff7df;
}

.list-group {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.list-group-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e7ef;
    background: #ffffff;
}

.list-group-item:last-child {
    border-bottom: none;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e3e7ef;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 0.85rem 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 1.2rem;
}

.card-footer {
    padding: 0.85rem 1.2rem;
    background: #f5f7fb;
}

.shadow-sm {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.d-none { display: none !important; }
