/* Lägger till typsnitt */
@font-face {
    font-family: 'hyra_sansdisplay';
    src: url('../../assets/fonts/hyrasans-display-webfont.woff2') format('woff2'),
         url('../../assets/fonts/hyrasans-display-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Rubriker */
h1, .display-5, .display-4, .display-3, .display-2, .display-1 {
    font-family: hyra_sansdisplay, Arial, sans-serif !important;
}

@media (max-width: 576px) {
        .logo-img {
            height: 30px !important;
            max-height: 30px !important;
            margin-right: 8px !important;
        }
        .header-title {
            font-size: 1.15rem !important;
        }
        .header-title-text {
            font-size: 1rem !important;
            padding-bottom: 0;
            transform: none;
        }
        .header-logo {
            align-items: center;
        }
}

.logo-img {
        height: 48px;
        max-height: 48px;
        width: auto;
}

.header-navbar {
    background-color: #06007e !important;
    background-image: none !important;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-navbar > .uk-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
}

.header-navbar .uk-navbar-item {
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
}

.header-navbar .uk-navbar-nav > li > a {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
}

.header-navbar .uk-navbar-left,
.header-navbar .uk-navbar-right {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.header-navbar .uk-navbar-left {
    flex: 1 1 auto;
    justify-content: flex-start;
}

.header-navbar .uk-navbar-right {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 16px;
}

.header-navbar .uk-navbar-nav > li > a {
    color: #f5f6ff;
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-navbar .uk-navbar-nav {
    margin-right: 0;
}

.header-navbar .uk-navbar-nav:empty {
    display: none;
}

.header-navbar .uk-navbar-nav > li > a:hover,
.header-navbar .uk-navbar-nav > li.uk-active > a {
    color: #ffffff;
}

.header-navbar .uk-navbar-dropdown {
    border-radius: 12px;
    border: 1px solid rgba(18, 38, 87, 0.14);
    box-shadow: 0 18px 36px rgba(17, 30, 66, 0.22);
    padding: 12px 0;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
}

.header-navbar .uk-navbar-dropdown-nav > li > a {
    font-weight: 500;
    padding: 9px 20px;
    color: #1f2a44;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-navbar .uk-navbar-dropdown-nav > li > a:hover,
.header-navbar .uk-navbar-dropdown-nav > li > a:focus {
    background: linear-gradient(90deg, rgba(6, 0, 126, 0.08), rgba(6, 0, 126, 0.02));
    color: #06007e;
}

.header-navbar .uk-navbar-dropdown-nav > li + li {
    margin-top: 2px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.header-title-text {
    color: #ffffff;
    font-size: clamp(2.16rem, 2vw, 3.38rem);
    font-family: hyra_sansdisplay, Arial, sans-serif;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.004em;
    padding-bottom: 0;
    transform: translateY(2px);
}

.header-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-action-button:hover,
.header-action-button:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

#mobile-menu .uk-offcanvas-bar {
    background: #06007e;
    color: #ffffff;
    width: min(100vw, 360px);
    padding: 28px 28px 40px;
}

#mobile-menu .uk-nav-default > li > a {
    color: #f5f6ff;
    font-weight: 500;
}

#mobile-menu .uk-nav-header {
    color: #ffffff;
    margin-top: 12px;
}

#mobile-menu .uk-button {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#mobile-menu .uk-button:hover,
#mobile-menu .uk-button:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

@media (max-width: 640px) {
    #mobile-menu .uk-offcanvas-bar {
        width: 100vw;
        padding: 28px 32px 56px;
    }
}

.site-footer {
    background: #f5f6f8;
    border-top: 1px solid #e1e4eb;
    color: #444b58;
    padding: 20px 0;
}

.site-footer .uk-container {
    max-width: 960px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer small {
    font-size: 0.82rem;
    display: inline-block;
}

/* Kalender */      
.fc-daygrid-day.booked {
    background: #f8d7da !important;
    color: #842029 !important;
    position: relative;
}
.fc-daygrid-day.booked::after {
    display: none;
}
.fc-daygrid-day:not(.booked):hover {
    background: #e7f4e4 !important;
    cursor: pointer;
}
.fc-daygrid-day-frame a {
    text-decoration: none !important;
    color: inherit !important;
}
.fc .fc-daygrid-day-number {
    font-size: 0.95rem;
}
.legend-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
    vertical-align: middle;
}
.legend-box.booked {
    background: #f8d7da;
    border-color: #842029;
}
.legend-box.free {
    background: #e7f4e4;
    border-color: #198754;
}
.legend-box.reserved {
    background: #ffe9b5;
    border-color: #b7791f;
}
.legend-box.closed {
    background: #e2e3e5;
    border-color: #555;
}
.shake {
    animation: shake 0.3s;
}
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.fc-col-header-cell, .fc .fc-col-header-cell {
    background: #c82333 !important;
    color: #fff !important;
    font-weight: bold;
    border: none !important;
}
.fc-col-header-cell a, .fc .fc-col-header-cell a {
    color: #fff !important;
    text-decoration: none !important;
    cursor: default !important;
    pointer-events: none;
}
#calendar {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 0;
}
.fc-theme-standard .fc-scrollgrid,
.fc .fc-scrollgrid {
    border-radius: 0;
    border: 0;
    border-width: 0;
    box-shadow: none;
}
.fc-header-toolbar .fc-button, .fc .fc-button {
    border-radius: 0 !important;
}
.fc-header-toolbar .fc-button-group .fc-button:first-child, .fc .fc-button-group .fc-button:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
.fc-header-toolbar .fc-button-group .fc-button:last-child, .fc .fc-button-group .fc-button:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
#calendar .fc-toolbar {
    padding: 0 30px;
}
.fc-header-toolbar .fc-button-group .fc-button {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.fc-daygrid-day.closed {
    background: #e2e3e5 !important;
    color: #555 !important;
    position: relative;
    opacity: 0.7;
}

.fc-daygrid-day.reserved {
    background: #ffe9b5 !important;
    color: #533f03 !important;
    position: relative;
    opacity: 0.85;
}

.fc-daygrid-bg-event.closed-background {
    background: #e2e3e5 !important;
    background-color: #e2e3e5 !important;
    opacity: 0.65;
    border-color: #e2e3e5 !important;
}

.fc-daygrid-bg-event.reserved-background {
    background: #ffe9b5 !important;
    background-color: #ffe9b5 !important;
    opacity: 0.6;
    border-color: #ffe9b5 !important;
}


.book-calendar-card {
    position: relative;
    padding: 24px 0 28px;
}

.book-calendar-card > h5,
.book-calendar-card .calendar-legend {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 640px) {
    .book-calendar-card {
        padding: 18px 0 20px;
    }
    .book-calendar-card > h5,
    .book-calendar-card .calendar-legend {
        padding-left: 16px;
        padding-right: 16px;
    }
    .fc .fc-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .fc .fc-toolbar-chunk {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .fc .fc-toolbar-title {
        font-size: 1.35rem;
    }
    #calendar .fc-toolbar {
        padding: 0;
    }
    .fc .fc-button {
        padding: 4px 10px;
    }
    .fc .fc-col-header-cell,
    .fc .fc-col-header-cell a {
        font-size: 0.85rem;
    }
    .fc .fc-daygrid-day-number {
        font-size: 0.85rem;
    }
    .legend-box {
        width: 14px;
        height: 14px;
    }
}