﻿/* 📁 wwwroot/css/app.css */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--z-blue, #0a4fc4);
}

.btn-primary {
    color: #fff;
    background-color: var(--z-blue, #0a4fc4);
    border-color: var(--z-blue-dk, #083b93);
}

.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 var(--z-cyan, #1592c6);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--z-green, #22a04a);
}

.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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--z-blue, #0a4fc4);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.map-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

.map-view {
    height: 100%;
    width: 100%;
}



/*.search-bar {
    display: block;
    margin-bottom: 10px;
    width: 300px;
}*/

/*.suggestions {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
}*/

/*    .suggestions li {
        padding: 5px;
        cursor: pointer;
    }

        .suggestions li:hover {
            background: #eee;
        }*/

.selection-bar {
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: auto;
    position: absolute;
    top: 10px;
    right: 5px;
    width: auto; /* Définir la largeur fixe */
    background-color: transparent;
    padding: 5px;
    border-radius: 15px;
    z-index: 1000; /* Assurez-vous que la barre de sélection est au-dessus de la carte */
}

    .selection-bar::-webkit-scrollbar {
        display: none;
    }

.selection-item {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background-color: var(--z-blue, #0a4fc4);
    color: white;
    border-radius: 15px;
    cursor: pointer;
}

    .selection-item:hover {
        background-color: var(--z-blue-dk, #083b93);
    }



/* Style pour agrandir le champ MudSelect quand il contient une carte */
.custom-select-with-card .mud-select-input {
    height: auto; /* Permet au champ de grandir */
    padding-top: 24px; /* Ajuste la position du contenu pour ne pas chevaucher le label */
    padding-bottom: 8px;
}