﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* --- ČIA YRA SVARBIAUSIA DALIS (MENIU STILIUS) --- */

/* Sidebar (Kairysis meniu) stilius */
.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

/* Ką daryti, kai ekranas MAŽAS (Telefonas) */
@media (max-width: 640.98px) {
    .sidebar {
        position: fixed; /* Prirakinam prie viršaus */
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999; /* Uždedam patį aukščiausią prioritetą */
        height: auto; /* Aukštis automatiškai prisitaiko */
    }

    .top-row {
        /* Viršutinė juosta su pavadinimu "MarsrutaiServer" */
        background-color: rgba(0,0,0,0.4);
        height: 3.5rem;
        display: flex;
        align-items: center;
    }

        .top-row a.navbar-brand {
            margin-left: 0.5rem;
        }

    /* Meniu elementai */
    .nav-scrollable {
        background-color: #3a0647; /* Kad nebūtų permatomas */
        max-height: calc(100vh - 3.5rem); /* Kad tilptų į ekraną */
        overflow-y: auto;
        display: none; /* Paslėpta pagal nutylėjimą */
    }

        /* Kai meniu išskleistas (nėra klasės 'collapse'), rodome jį */
        .nav-scrollable:not(.collapse) {
            display: block;
        }

    /* Pagrindinis turinys turi pasislinkti žemyn, kad meniu jo neuždengtų viršuje */
    .main > .content {
        padding-top: 5rem !important;
    }
}

/* Ką daryti, kai ekranas DIDELIS (PC) */
@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
    transition: transform 0.3s ease-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
