/* 💧 Smart Water Dashboard: Deep Neon Obsidian Style */

/* Base Styles */
body {
    background: radial-gradient(circle at 50% 0%, #120e2e 0%, #060514 80%);
    color: #f1f1f7;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Panel with Glow */
.glass-panel {
    background: rgba(14, 11, 35, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.1),
                0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Glowing Neon Text */
.neon-text-cyan {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5), 0 0 2px rgba(6, 182, 212, 0.8);
}

.neon-text-purple {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5), 0 0 2px rgba(167, 139, 250, 0.8);
}

.neon-text-emerald {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5), 0 0 2px rgba(52, 211, 153, 0.8);
}

.neon-text-rose {
    color: #f43f5e;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5), 0 0 2px rgba(244, 63, 94, 0.8);
}

/* Custom Status Pulse */
.status-pulse-online {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-online 1.8s infinite;
}

@keyframes pulse-online {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-pulse-offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-offline 1.8s infinite;
}

@keyframes pulse-offline {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* System Progress Bars */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 30px 30px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: bar-stripes 1.5s linear infinite;
}

@keyframes bar-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

/* Beautiful Glowing Buttons */
.btn-control-on {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(52, 211, 153, 0.2);
    transition: all 0.2s ease;
}

.btn-control-on:hover {
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-control-on:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px 0 rgba(16, 185, 129, 0.3);
}

.btn-control-off {
    background: linear-gradient(135deg, #dc2626 0%, #f43f5e 100%);
    box-shadow: 0 4px 14px 0 rgba(244, 63, 94, 0.3);
    border: 1px solid rgba(251, 113, 133, 0.2);
    transition: all 0.2s ease;
}

.btn-control-off:hover {
    box-shadow: 0 6px 20px 0 rgba(244, 63, 94, 0.5);
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-control-off:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px 0 rgba(244, 63, 94, 0.3);
}

/* Grid & Layout Adjustments */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Interactive SVG Icon Wrapper */
.icon-wrapper {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
