/* 💧 Smart Home Station: Deep Neon Obsidian Style */

/* Base Styles[span_9](start_span)[span_9](end_span) */
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[span_10](start_span)[span_10](end_span) */
.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);
}

/* Tab Navigation Menu */
.tab-btn {
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
}
.tab-btn:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
}
.tab-btn.active {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.tab-page {
    display: none;
}
.tab-page.active {
    display: block;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glowing Neon Text[span_11](start_span)[span_11](end_span) */
.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[span_12](start_span)[span_12](end_span) */
.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[span_13](start_span)[span_13](end_span) */
.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; }
}

/* Buttons[span_14](start_span)[span_14](end_span) */
.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);
}

.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);
}

.btn-neon-cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid #06b6d4;
    color: #06b6d4;
    transition: 0.2s ease;
}
.btn-neon-cyan:hover { background: #06b6d4; color: #040814; box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }

.btn-neon-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #a855f7;
    transition: 0.2s ease;
}
.btn-neon-purple:hover { background: #a855f7; color: #fff; box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }

.btn-neon-rose {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid #f43f5e;
    color: #f43f5e;
    transition: 0.2s ease;
}
.btn-neon-rose:hover { background: #f43f5e; color: #fff; box-shadow: 0 0 15px rgba(244, 63, 94, 0.5); }

.btn-dark-glow {
    background: rgba(14, 11, 35, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: 0.2s ease;
}
.btn-dark-glow:hover {
    border-color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Inputs & Form Elements */
.input-dark {
    background: rgba(6, 5, 20, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #e2e8f0;
    outline: none;
    transition: 0.2s;
}
.input-dark:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Fan Motor Animations[span_15](start_span)[span_15](end_span) */
.fan-card.active {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.08);
}
.fan-card.active .fan-svg {
    fill: #06b6d4;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
    animation: spin linear infinite;
}
.fan-card.active .speed-label {
    color: #06b6d4;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    background: transparent;
}
.range-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #06b6d4;
    margin-top: -6px;
    cursor: pointer;
    box-shadow: 0 0 10px #06b6d4;
}
.range-slider:disabled::-webkit-slider-thumb {
    background: #475569;
    box-shadow: none;
    cursor: not-allowed;
}

/* Grid & Layout Adjustments[span_16](start_span)[span_16](end_span) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.icon-wrapper {
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

