/* Stili generali */
body {
    margin: 0 !important; 
    padding: 0 !important;
    overflow: hidden;
    font-size: 1.2em;
    font-weight: 500;
}

.leaflet-container {font-family: 'Barlow', sans-serif !important;}

.navbar {
    width: 100%;
}

#map {
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    position: relative;
}

/* Stile per il pulsante principale di aggiunta risorsa */

.title-box {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 900;
    background-color: #000;
    color: white;
    border-radius: 10px;
    border: none;
    padding:8px 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 2em;
    font-weight: 600;
}

.title-box span {font-size:.6em; margin-left:6px; margin-bottom:2px;align-self: flex-end;}


.add-resource-btn {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 900;
    background-color: #000;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#add-resource-btn:hover .add-resource-btn, #add-resource-btn:hover .add-resource-text {
    background-image: linear-gradient(#fff3,#fff3);
}

.add-resource-text {
    position: absolute;
    left: 40px;
    top: 85px;
    z-index: 899;
    background-color: #eaea00;
    color: black;
    height: 30px;
    border-radius: 300px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left:30px;
    padding-right:10px;

    font-size: 1em;
    font-weight: 600;

}

/* Stile per il wizard */
.wizard-container {
    position: absolute;
    top: 150px;
    left: 20px;
    width: 320px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    overflow: auto;
}

.wizard-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-title {
    margin: 0;
    font-size: 1.2em;
    text-align: center;
    font-weight: 600;
    color: #343a40;
}

.wizard-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
}

.wizard-content {
    padding: 0 15px;
}

.wizard-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.wizard-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}

.wizard-btn-back {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #495057;
}

.wizard-btn-next {
    background-color: #007bff;
    color: white;
}

.wizard-btn-next:hover {
    background-color: #0069d9;
}

.wizard-btn-back:hover {
    background-color: #e9ecef;
}

/* Stile per gli elenchi di opzioni */
.option-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background-color: #f8f9fa;
}
.option-color {
    margin-right: 12px;
    width:16px;
    height:16px;
    border-radius: 8px;
}

.option-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-info {
    width: 24px;
    height:24px;
    border-radius:12px;
    border: 1px solid #000;
    display:block;
    cursor: pointer;
}
.option-info:hover {
    background:rgba(0,0,0,0.1);
}
.option-info::after
{
    content: "?";
    position:relative;
    left: 7.5px;
    top: 2px;
    font-weight: bold;
}

/* Stile per il form */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.file-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.file-input-btn {
    flex: 1;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    color: #495057;
}

.file-input-btn:hover {
    background-color: #e9ecef;
}

/* Stile per il feedback di salvataggio */
.save-feedback {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
}

.save-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.save-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Overlay per bloccare le interazioni con la mappa durante l'aggiunta di linee/poligoni */
.draw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    pointer-events: none;
}

.draw-instructions {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
}

.draw-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
}

.leaflet-tooltip-right:before {display:none;}
.marker-label {
    border-radius:200px;
    padding: 5px 10px;
    border:1px solid #000;
    box-shadow:0 2px 5px #0004;
}

#modalColor 
{
    color:white;
}
#modalColor .modal-header, #modalColor .modal-footer
{
    border-color:#fff2;
}