/* Custom styles for the Electricity Monitoring System */

/* Active navigation link */
.nav-link.active {
    color: #059669;
    font-weight: 600;
}

/* Section visibility */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Card hover effects */
.bg-white.rounded-lg {
    transition: transform 0.2s, box-shadow 0.2s;
}

.bg-white.rounded-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* File upload area */
#file-upload:focus + label {
    outline: 2px solid #059669;
}

/* Mobile sidebar */
@media (max-width: 768px) {
    #sidebar.show {
        display: block;
        position: fixed;
        z-index: 40;
        height: 100vh;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 30;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #059669;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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