:root {
/*    --brand: #448922;
    --brand-hover: #5da030;*/
}

html {
    width: 100dvw;
    height: 100dvh;
    position: fixed;
    
}

body {
    margin: 0px;
    font-family: Arial, sans-serif;
    -webkit-user-select: none; /* Для Chrome, Safari */
    -moz-user-select: none; /* Для Firefox */
    -ms-user-select: none; /* Для IE/Edge */
    user-select: none; /* Стандартный синтаксис */
    background-image: url(/images/map/stone-bg-2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left;
}


#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }


/*.content-area {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .content-area h2 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #ecf0f1;
    }

    .content-area p {
        max-width: 600px;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #bdc3c7;
    }*/

select {
    color: white;
    background-color: black;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 40px;
}

textarea {
    min-height: 60px;
    resize: none;
    color: white;
    background-color: black;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /*  Авто размер  */
    box-sizing: border-box; /* важно, чтобы padding учитывался */
    max-height: 40vh; /* максимум — дальше появится скролл */
    overflow: hidden; /* скрываем внутренний скролл, пока не превышено max-height */
}

form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
    overflow-y: scroll;
    will-change: scroll-position;
}

input {
    color: white;
    background-color: black;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
}


@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 40vh;
    }
}

.leaflet-popup-content {
    padding: 0px !important;
    margin: 0px !important;
}

.image-content-img {
    cursor: zoom-out;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.loading-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;

    width: 220px;
    height: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 9px;
    border-radius: 10px;
}

.confirmation-dialog {
    width: 400px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 9px;
    border-radius: 10px;
}

.confirmation-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: 0;
}

.confirmation-buttons {
    display: flex;
    flex-direction:row;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 40px;
}

.btn {
    width: 20%;
    padding: 8px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: darkred;
}

.btn-secondary:hover {
    background-color: #45a049;
}

/* /////////////////////*/

.loading-main {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #36393f, #2f3136);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 10000;
}

.loading-container {
    background-color: #2f3136;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 350px;
    text-align: center;
    border: 1px solid #40444b;
}

.loading-page-text {
    font-size: 16px;
    color: #b9bbbe;
    margin-bottom: 25px;
    line-height: 1.5;
}


.validation-message {
    font-size: 13px;
    font-style: italic;
    
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: red;
}

input.valid.modified,
text.valid.modified,
select.valid.modified {
    border-color: green;
}