/* ATOM Athlete - Custom Styles & Markers */
.status-dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; }
.traffic-light { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto; border: 1px solid rgba(0,0,0,0.1); transition: all 0.3s ease; }
.light-green { background-color: #22c55e; box-shadow: 0 0 8px #22c55e; }
.light-yellow { background-color: #eab308; box-shadow: 0 0 8px #eab308; }
.light-red { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

#map-punter-container { touch-action: none; position: relative; cursor: crosshair; }

/* MARKER VIOLA GEOREF */
.marker-purple { 
    position: absolute; width: 32px; height: 32px; 
    transform: translate(-50%, -50%) !important; z-index: 60; 
    display: flex; align-items: center; justify-content: center; 
}
.marker-triangle { 
    width: 32px; height: 32px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 22h20L12 2z'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; background-position: center; background-size: contain; 
}
.marker-circle { width: 24px; height: 24px; border: 4px solid #8b5cf6; border-radius: 50%; background: rgba(139, 92, 246, 0.1); }
.marker-double-circle { 
    width: 30px; height: 30px; border: 2px solid #8b5cf6; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
}
.marker-double-circle::after { content: ''; width: 14px; height: 14px; border: 2px solid #8b5cf6; border-radius: 50%; }

.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* ============================================================
   ATOM MODAL OVERLAY — sistema modale unificato per tutti i ruoli
   Usato da: athlete.html, coach.html, organizer.html
   ============================================================ */
.atom-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.atom-modal-overlay.active {
    display: flex;
}

/* Settings modal usa flex-col su mobile, flex-row su desktop */
.settings-nav-btn { transition: all 0.2s ease; }
.settings-nav-btn.active {
    background-color: #EFF6FF;
    color: #1D4ED8;
    font-weight: 900;
}

/* Scrollbar personalizzata nei modal */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }
