@import url('./application-theme.css');
@import url('./fonts.css');
@import url('./overlay.css');
@import url('./alerts.css');
@import url('./cookies.css');
@import url('./card-styles.css');
@import url('./stable-page.css');
@import url('./filtering.css');

:root {
    --app-radius: 20px;
}

.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;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh; 
    background-color: var(--background-color);
    background: var(--background-color);
}

main {
    width: 100%;
    margin-top: 24px;
    background-color: transparent;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
    cursor: pointer !important;
    color: black !important;
}

#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
    fill: var(--nav-accent-color);
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em 0em;
    cursor: pointer;
    fill: var(--nav-accent-color);
}

#overlay {
    background: rgba(0,0,0,0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}


input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    margin: 0 10px;
    transition: background 0.3s;
}

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #aaa;
        cursor: pointer;
        box-shadow: 0 0 2px rgba(0,0,0,0.5);
    }

    input[type=range]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #aaa;
        cursor: pointer;
        box-shadow: 0 0 2px rgba(0,0,0,0.5);
    }

.slider {
    margin-bottom: 10px;
    touch-action: none;
}

    .slider.red {
        background: linear-gradient(to right, rgba(255, 0, 0, 0), rgb(255, 0, 0));
    }

    .slider.green {
        background: linear-gradient(to right, rgba(0, 255, 0, 0), rgb(0, 255, 0));
    }

    .slider.blue {
        background: linear-gradient(to right, rgba(0, 0, 255, 0), rgb(0, 0, 255));
    }

.horse-box {
    margin: 0 auto;
    width: 100% !important;
    text-decoration: none;
    height: 240px;
    color: Black;
    max-width: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .horse-box:hover {
        color: inherit;
        text-decoration: none;
    }

.box-footer {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100% !important;
    text-align: center !important;
    padding: 0;
    bottom: 2%;
}

.page-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    width: 100%;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d4dbe5;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .page-dot.active {
        background-color: var(--theme-color);
        transform: scale(1.2);
    }

.page-indicators-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.admin-button {
    min-width: 200px !important;
}

.icon-text {
    line-height: 1;
    position: relative;
    opacity: 0.7;
    top: clamp(0px, 0.5vw, 3px);
    font-size: clamp(1rem, 1vw + 0.8rem, 1.4rem);
}

.fa-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    text-decoration: none;
    cursor: pointer;  
}

    .fa-icon-container:hover {
        text-decoration: none;
    }

    .fa-icon-container span,
    .fa-icon-container i.icon-text {
        margin: 0;
        line-height: 1;
    }
     
.image-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    text-align: center;
    min-height: 45px;
}

    .image-text-container img {
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        max-width: min(20%, 60px);
        height: auto;
    }

    .image-text-container i {
        position: absolute;
        right: 5px;
        top: 30%; 
        opacity: 0.6;
        max-width: min(20%, 60px);
        height: auto;
    }

    .image-text-container p {
        margin: 0 75px;
        white-space: normal;
        text-align: center;
        word-break: break-word;
    }


@media (max-width: 768px) {
    .image-text-container {
        justify-content: center;
        align-items: center;
    }

        .image-text-container img {
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            opacity: 0.2;
            margin: 0;
        }

        .image-text-container p {
            margin: 0 10px;
            width: 100%;
            z-index: 1;
        }
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

    .phone-link:hover {
        text-decoration: underline;
        cursor: pointer;
    }

.owner-image-cover {
    margin-left: -10px !important;
    margin-right: -5px !important;
    z-index: 2 !important;
    width: clamp(30px, 1.1vw, 40px);
}

    .owner-image-cover img {
        margin-left: 10px !important;
        margin-right: 5px !important;
        width: clamp(20px, 1vw, 35px);
        aspect-ratio: 1/1;
    }

.horse-image-cover {
    margin-left: -10px !important;
    margin-right: -5px !important;
    z-index: 2 !important;
    width: clamp(35px, 3.1vw, 45px);
}

    .horse-image-cover img {
        margin-left: 5px !important;
        margin-right: 5px !important;
        width: clamp(30px, 3vw, 40px);
        aspect-ratio: 1/1;
    }

.content-container {
    max-width: 60% !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    user-select: none;
    border-radius: var(--app-radius);
    padding: var(--app-radius);
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

.corner-shadow {
    padding: var(--app-radius);
    border-radius: var(--app-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    justify-content: center;
    text-align: center;
    overflow-wrap: break-word;
    align-items: center;
    min-height: 45px;
}
    .corner-shadow p {
        margin: 0;
    }

@media screen and (max-width: 768px) { 
    .corner-shadow { 
        border-radius: 16px;
    }

    .content-container {
        min-width: 90% !important;
        max-width: 90% !important;
        margin-left: auto;
        margin-right: auto;
        margin-top: -24px;
        padding: 12px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    } 

    #open-sidebar-button, #close-sidebar-button {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh !important;
        width: min(15em, 100%);
        z-index: 2000;
        border-left: 1px solid var(--nav-hover-color);
        transition: right 300ms ease-out;
    }

        nav.show {
            right: 0;
        }

            nav.show ~ #overlay {
                display: block;
            }

        nav ul {
            width: 100%;
            flex-direction: column;
        }

        nav a {
            width: 100%;
            padding-left: 2.5em;
        }

            nav a.active-link {
                border-bottom: none;
            }

        nav .home-li {
            margin-right: unset;
        }
}

nav {
    background-color: white !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    height: 60px;
}

    nav ul {
        list-style: none;
        display: flex;
    }

    nav li {
        display: flex;
    }

    nav .home-li {
        margin-right: auto;
    }

    nav a {
        display: flex;
        text-decoration: none;
        padding: 1em 2em;
        transition: background-color 150ms ease;
    }

        nav a:hover {
            background-color: var(--nav-hover-color);
        }

        nav a.active-link {
            border-bottom: 2px solid var(--nav-text-color);
        }

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 2000;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
}

    .dropdown-menu li {
        padding: 0;
        color: #fff;
    }

    .dropdown-menu a {
        display: block;
        padding: 10px 15px;
        text-decoration: none;
    }

        .dropdown-menu a:hover {
            background-color: #f8f9fa;
            color: #000;
        }

.dropdown:hover .dropdown-menu {
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

    .switch input {
        display: none;
    }


.column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
} 

.container-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    margin-top: 8px;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .date-range-inputs input[type="date"] {
        text-align: center;
        border-radius: 5px;
        border-width: 1px;
    }

.action-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    width: 280px;
    margin: 6px auto;
}

.action-checkbox {
    transform: scale(1.2);
    transform-origin: center;
    justify-self: center;
}

.action-label {
    text-align: left;
    cursor: pointer;
    margin: 0;
}

.box-color {
    background: var(--horse-box-color);
}

.no-selecting {
    user-select: none;
}

.selecting {
    cursor: pointer;
    user-select: none;
}

.no-highlight {
    user-select: none;
    pointer-events: none;
}

.no-cursor {
    cursor: auto !important;
}

.hidden-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #ffffffaa;
    width: 100%;
    padding: 11px;
    text-align: center;
    z-index: 1000;
}

.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    position: relative;
    width: clamp(300px, 90%, 800px);
    background-color: var(--background-color);
    padding: 10px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    user-select: none;
}

    .popup-close:hover {
        color: #000;
    }

.popup-help {
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    background: #00000000;
    border: 1px solid #666;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    user-select: none;
    z-index: 10000;
}

    .popup-help:hover {
        color: #000;
        border-color: #000;
    }

.swal-popup {
    width: clamp(300px, 90%, 800px);
    border-radius: 20px !important;
    padding: 1.5rem;
}

.swal-button {
    border-radius: 20px !important;
    padding: 10px 30px !important;
    border: none;
    border-width: 0px;
}

.swal2-container {
    z-index: 10000 !important;
}

.button-no-click-animation {
    outline: none !important;
    box-shadow: none !important;
}

button[type="submit"],
input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #ececec;
    font-family: inherit;
    cursor: pointer;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap !important;
    text-align: left;
}

    .scroll-text.scrolling {
        animation: scroll 7s linear infinite;
    }

.wrap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.wrap-text {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    display: block;
    width: 100%;
    margin-right: 30px;
}

@keyframes scroll {
    0% {
        transform: translateX(50%);
    }

    80% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(50%);
    }
}


.pulse_contrast {
    animation: pulse_contrast 2s infinite;
}

@keyframes pulse_contrast {
    0% {
        -moz-box-shadow: 0 0 0 0 hsl(80, 81%, 64%);
        box-shadow: 0 0 0 0 hsl(80, 81%, 64%);
    }

    70% {
        -moz-box-shadow: 0 0 0 18px #00000010;
        box-shadow: 0 0 0 10px #00000010;
    }

    100% {
        -moz-box-shadow: 0 0 0 0 #00000000;
        box-shadow: 0 0 0 0 #00000000;
    }
}

.pulse_no_contrast {
    animation: pulse_no_contrast 2s infinite;
}

@keyframes pulse_no_contrast {
    0% {
        -moz-box-shadow: 0 0 0 0 hsl(20, 85%, 60%);
        box-shadow: 0 0 0 0 hsl(20, 85%, 60%);
    }

    70% {
        -moz-box-shadow: 0 0 0 18px #00000010;
        box-shadow: 0 0 0 10px #00000010;
    }

    100% {
        -moz-box-shadow: 0 0 0 0 #00000000;
        box-shadow: 0 0 0 0 #00000000;
    }
}

.collapsible {
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-height: 0;
    width: 100%;
}

    .collapsible.expanded {
        max-height: 5000px;
    }

.expandable-header {
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.rotated {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.notification-container {
    display: block;
}

    .notification-container .corner-shadow {
        position: relative;
    }

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--warning);
    color: white;
    line-height: 1;
    z-index: 10;
    box-sizing: border-box;
}

/*TIMETABLE / CALENDAR*/

.fc-header-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

        .fc-header-toolbar > * {
            margin: 5px 0;
        }
}

/*PASSWORDS*/

.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 3rem;
    }

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

    .password-toggle-btn:hover {
        color: #333;
    }

    .password-toggle-btn:focus {
        outline: none;
        box-shadow: none;
    }

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.push-switch .switch {
    position: relative;
    width: 48px;
    height: 26px;
}

    .push-switch .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .push-switch .switch .slider {
        position: absolute;
        inset: 0;
        background-color: var(--primary);
        border-radius: 999px;
        transition: background-color .25s ease;
        cursor: pointer;
    }

        .push-switch .switch .slider::before {
            content: "";
            position: absolute;
            height: 20px;
            width: 20px;
            left: 3px;
            top: 3px;
            background-color: #fff;
            border-radius: 50%;
            transition: transform .25s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,.25);
        }

.push-switch input:checked + .slider {
    background-color: var(--information);
}

    .push-switch input:checked + .slider::before {
        transform: translateX(22px);
    }

.alerts-stack {
    margin-bottom: 2px;
    position: fixed;
    bottom: 44px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
}

.alert-item {
    min-height: 50px;
    cursor: pointer;
    pointer-events: auto;
}

.shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}
