html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

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

body {
    margin-bottom: 60px;
}

#map {
    min-height: 500px;
    width: 100%;
    height: 100%;
    background-color: grey;
}

.main-color {
    background-color: #485177;
    color: white;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    height: calc(1.5em + 0.75rem + 2px);
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 1.5;
    }

.select2-container .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px);
}

.no-wrap {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .container {
        max-width: 80%;
    }
}

.dropdown-container,
.input-container {
    position: relative;
}

    .dropdown-container label,
    .input-container label {
        display: block;
    }

.alert-icon {
    position: absolute;
    right: 45px;
    top: 5px;
    color: #ffc107;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
}

.dropdown-container select,
.input-container input {
    width: 100%;
    box-sizing: border-box;
}

.pending-tooltip {
    display: none;
    position: absolute;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    top: 100%;
    left: 0;
    width: calc(100% - 24px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 5px 12px 0;
}

    .pending-tooltip.show {
        display: block;
    }


.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #485177;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d32f2f;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.loading-cursor {
    cursor: wait !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-control[readonly] {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

.table > tbody > tr.face-history-current-state > * {
    color: blue;
    font-weight: bold;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.app-notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    max-width: 24rem;
}

.app-notification {
    cursor: pointer;
}

.deleted-marker {
    color: red;
    font-style: italic;
}

.map-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 1rem;
}

.map-info-title {
    text-align: center;
}
