/* Custom CSS Design System - Rainfall Visualizer */

/* Import Outfit font for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-start: #060814;
    --bg-end: #0c112d;
    --card-bg: rgba(15, 20, 45, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(79, 70, 229, 0.15);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-hover: #4f46e5;
    
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.3);
    
    --rain: #38bdf8;
    --rain-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --error: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 50%, #111845 0%, var(--bg-start) 70%, var(--bg-end) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ambient background glows */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

body::before {
    background: var(--primary);
    top: 15%;
    left: 20%;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

body::after {
    background: var(--accent);
    bottom: 15%;
    right: 20%;
    animation: floatGlow 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.2); }
}

/* Container limits */
.app-container {
    width: 100%;
    max-width: 900px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 600px;
    justify-content: center;
}

/* Glass Card styles */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    padding: 36px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.4s ease;
    width: 100%;
}

.glass-card:hover {
    box-shadow: 0 15px 45px -5px rgba(0, 0, 0, 0.6), 0 0 30px var(--card-glow);
}

/* Header design */
.app-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, #a5b4fc 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo i {
    color: var(--rain);
    filter: drop-shadow(0 0 8px var(--rain));
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Screen visibility & animations */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.screen.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input layer (Screen 1) Styles */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    background: rgba(10, 12, 30, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(10, 12, 30, 0.8);
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-input:focus + i {
    color: var(--primary);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239ca3af' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

select.form-input option {
    background-color: #060814;
    color: var(--text-primary);
}

/* Date picker specific */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Helper actions inside form */
.location-helper {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.location-helper:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #fff;
}

.form-input-with-helper {
    padding-right: 180px; /* Make space for coordinates auto detector */
}

@media (max-width: 500px) {
    .form-input-with-helper {
        padding-right: 44px;
    }
    .location-helper span {
        display: none;
    }
    .location-helper {
        right: 4px;
    }
}

/* Confirm Button styling */
.btn-primary {
    width: 100%;
    background: var(--rain-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #4fcbff 0%, #6366f1 100%);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Loading Spinner state */
.btn-primary.loading {
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Layer 2: Dashboard Layer Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateX(-3px);
}

/* Metrics Quick Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: rgba(10, 12, 30, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary);
    filter: blur(40px);
    bottom: -30px;
    right: -30px;
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.metric-card.accent-card::after {
    background: var(--accent);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.metric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Graph container styling */
.chart-container {
    position: relative;
    width: 100%;
    height: 350px;
    background: rgba(10, 12, 30, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

/* Details and Sources banner */
.sources-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.source-badges {
    display: flex;
    gap: 8px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge.openweather {
    border-color: rgba(242, 114, 12, 0.3);
    background: rgba(242, 114, 12, 0.1);
    color: #f2720c;
}

.badge.openmeteo {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
}

/* Status overlays / Error messaging */
.status-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.status-msg.error {
    display: flex;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.status-msg.success {
    display: flex;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* App footer info */
.app-credits {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 24px;
}
.app-credits a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.app-credits a:hover {
    color: var(--accent);
}

/* Interactive Day Selector Timeline and Daily Detail Views (Layer 3) */

.selector-section {
    margin-top: 28px;
    margin-bottom: 20px;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
}

/* Custom Scrollbar for horizontal scrolling tabs */
.timeline-tabs::-webkit-scrollbar {
    height: 6px;
}
.timeline-tabs::-webkit-scrollbar-track {
    background: transparent;
}
.timeline-tabs::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}

.timeline-tab-btn {
    background: rgba(10, 12, 30, 0.4);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.timeline-tab-btn span.tab-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--primary-glow);
}

.timeline-tab-btn.active {
    background: var(--rain-gradient);
    color: #fff;
    border-color: var(--rain);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.timeline-tab-btn.active span.tab-sub {
    color: rgba(255, 255, 255, 0.8);
}

/* Layer 3: Details Panel Styles */
.details-panel-container {
    background: rgba(10, 12, 30, 0.35);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    animation: slideDownFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.details-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-elevation {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.05);
}

/* Details 4-Card Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: rgba(10, 12, 30, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card-badge {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

/* Border card accent colors */
.detail-card.temp-card {
    border-left: 4px solid #f59e0b; /* Amber */
}
.detail-card.temp-card .detail-card-label i {
    color: #f59e0b;
}

.detail-card.rh-card {
    border-left: 4px solid #10b981; /* Emerald */
}
.detail-card.rh-card .detail-card-label i {
    color: #10b981;
}

.detail-card.wind-card {
    border-left: 4px solid #06b6d4; /* Cyan */
}
.detail-card.wind-card .detail-card-label i {
    color: #06b6d4;
}

.detail-card.rain-card {
    border-left: 4px solid #3b82f6; /* Blue */
}
.detail-card.rain-card .detail-card-label i {
    color: #3b82f6;
}

/* Stats inside details */
.detail-stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 16px;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 70px;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Badge list of hourly values */
.detail-list-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.05) transparent;
}

.badge-list::-webkit-scrollbar {
    height: 4px;
}
.badge-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.time-badge {
    background: rgba(10, 12, 30, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 55px;
    flex-shrink: 0;
}

.badge-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Demand Estimation Screen Styles */
#demand-screen {
    display: none;
}

#demand-screen.active {
    display: block;
}

.demand-table {
    border-collapse: separate;
    border-spacing: 0;
}

.demand-table th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.demand-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.demand-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Indicator Bar Styling */
.status-badge {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.status-badge.fallback {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border: 1px solid #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

/* Responsive cards view for mobile screens */
@media (max-width: 900px) {
    .demand-table-container {
        display: none;
    }
    .demand-cards-container {
        display: flex !important;
    }
    .demand-day-card {
        background: rgba(10, 12, 30, 0.4);
        border: 1px solid var(--card-border);
        border-radius: 14px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .demand-day-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 8px;
    }
    .demand-day-card-date {
        font-weight: 700;
        color: var(--text-primary);
    }
    .demand-day-card-demand {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent);
    }
    .demand-day-card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        font-size: 0.85rem;
    }
    .demand-day-card-item {
        display: flex;
        flex-direction: column;
    }
    .demand-day-card-item span:first-child {
        color: var(--text-muted);
        font-size: 0.75rem;
    }
    .demand-day-card-item span:last-child {
        color: var(--text-secondary);
        font-weight: 500;
    }
}

/* Live Telemetry Premium Styling */
.telemetry-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-card.moisture-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15), 0 0 15px rgba(56, 189, 248, 0.1);
    transform: translateY(-4px);
}

.telemetry-card.temp-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15), 0 0 15px rgba(245, 158, 11, 0.1);
    transform: translateY(-4px);
}

.telemetry-card.water-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15), 0 0 15px rgba(34, 211, 238, 0.1);
    transform: translateY(-4px);
}

.telemetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.telemetry-card.moisture-card::before {
    background: linear-gradient(90deg, var(--rain), #818cf8);
}

.telemetry-card.temp-card::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.telemetry-card.water-card::before {
    background: linear-gradient(90deg, var(--accent), #3b82f6);
}

/* Pulsing dot for Live Telemetry Title */
.telemetry-section .section-title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 0 8px var(--success);
    animation: livePulse 1.5s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--success); }
}



