.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

@media (min-width: 576px) {
    html {
        overflow-y: scroll;
    }
}

body {
    margin-bottom: 60px;
    background-color: #f8fcfd;
    font-family: "Open Sans", 'Verdana', sans-serif;
    font-size: 16px;
    letter-spacing: 0.7px;
}

header,
footer {
    background-color: #e3eff1;
}

/* Navigation*/
.navbar {
    font-size: 0.9rem;
}

.navbar-nav .nav-link {
    font-size: 16px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    margin-right: 0.4rem;
    background-color: transparent;
    color: #000;
    transition: all 0.2s ease-in-out;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: #ffc107;
        color: #000;
        border-radius: 6px;
    }

.dropdown-menu {
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease-in-out;
}

    .dropdown-item:hover {
        background-color: #ffc107;
    }

    .dropdown-item i {
        margin-right: 6px;
        color: #666;
    }


/* Forms */
input,
textarea {
    border-radius: 5px;
    border: 1px solid grey;
}

label {
    font-size: 14px;
}

a.button,
a.button:hover {
    border-radius: 5px;
    border: 1px solid grey;
    text-decoration: none;
}

/* Cards */
.card {
    border-radius: 10px;
    margin-bottom: 10px;
}

.card-title {
    background-color: #eee;
    border-radius: 10px 10px 0 0;
    padding: 2px 10px 5px 10px;
}

/* Boxes */
.box {
    background-color: white;
    border-radius: 7px;
    border: 1px solid lightgrey;
}

/* Links */
.normal-link,
.normal-link:hover,
.normal-link:visited {
    text-decoration: none;
    color: black;
}

/* Flex for Nyheter */
.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.flex-div1 {
    flex: 1;
    margin-right: 20px;
}

.flex-div2 {
    flex: 2;
}

#no-image-article {
    padding-left: 15px;
}

@media (max-width: 991px) {
    .flex-container {
        flex-direction: column;
    }

    .flex-div1 {
        margin-right: 0;
    }

    .flex-div2 {
        padding-top: 20px;
    }

    #no-image-article {
        padding-left: 0;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* Icons */
.icon {
    padding: 3px;
    border-radius: 3px;
}

    .icon:hover {
        background-color: lightgrey;
    }

/* Breadcrumbs */
.breadcrumbs {
    background-color: white;
    border: 1px solid lightgrey;
    border-radius: 0 10px 10px 0;
    padding: 0 20px 0 10px;
    margin-bottom: 30px;
    font-size: 13px;
}

    .breadcrumbs a {
        text-decoration: none;
    }

/* Booking layout */
.schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.schedule-day {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
}

.schedule-day-header {
    background-color: #f8f9fa;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

.schedule-day-slots {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-slot {
    border: 1px solid #000;
    border-radius: 4px;
    padding: 6px;
    font-size: 0.9rem;
    background-color: white;
    min-height: 40px;
}

@media (max-width: 768px) {
    .schedule {
        display: flex;
        flex-direction: column;
    }

    .time-slot {
        min-width: 100%;
    }
}

hr {
    background-color: grey;
}

.flex-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.time {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 8px;
    text-align: center;
}

    /* När man hovrar */
    .time:hover {
        background-color: #f0f8ff;
        border-color: #007bff;
    }

    /* Visuell markering vid klick */
    .time.selected-time {
        background-color: #007bff;
        color: white;
        border: 2px solid #003366;
    }

    /* Bokade tider (fortsätter respektera inline-style också) */
    .time[style*="background-color: red"] {
        background-color: #dc3545 !important;
        color: white !important;
    }

    .time[style*="background-color: lightgreen"] {
        background-color: #ffc107 !important;
        color: black !important;
    }

.square-image {
    width: 400px;
    height: 400px;
    overflow: hidden;
}

    .square-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (max-width: 576px) {
    .square-image {
        width: 250px;
        height: 250px;
    }
}

/* Dropdown: gul hover + gul aktiv */
.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:focus {
    background-color: #ffc107 !important; /* samma gul som hover */
    color: #000 !important;
}