/* Base Styles for MAGA AV System */

/* Scrollbar Styling */
.dashboard-scroll::-webkit-scrollbar {
    width: 6px;
}

.dashboard-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(71, 85, 105, 0.5);
    border-radius: 20px;
}

.dashboard-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(71, 85, 105, 0.8);
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Styles */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%);
}

#mobileMenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Links */
#mobileMenu a {
    transition: all 0.2s ease;
}

#mobileMenu a:hover {
    transform: translateX(10px);
}

/* Map Path Styling */
.map-path {
    transition: all 0.3s ease;
    cursor: pointer;
    stroke: #0F172A;
    stroke-width: 1.5px;
}

.map-path:hover {
    fill: #38bdf8;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
    stroke: #fff;
    stroke-width: 2px;
    z-index: 50;
    position: relative;
}

/* Map Label Styling */
.map-label {
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 10px;
    font-weight: 600;
    fill: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.group\/map:hover .map-label {
    opacity: 0.7;
}

.map-path:hover + .map-label,
.map-path:hover ~ .map-label {
    opacity: 1;
    font-size: 12px;
    font-weight: 800;
    fill: white;
}

/* User Menu Dropdown Animation */
#userDropdown {
    transition: all 0.2s ease-in-out;
}

#userDropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Gestiones Menu Dropdown Animation */
#gestionesDropdown {
    transition: all 0.2s ease-in-out;
}

#gestionesDropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Button Hover Effects */
.btn-hover {
    transition: all 0.2s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Progress Bar Animation */
@keyframes progress {
    from {
        width: 0;
    }
}

.progress-bar {
    animation: progress 1s ease-out;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Small Loading Spinner */
.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Photo Upload Section */
.edit-form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
