/* EcoVision Pro - Simple Layout CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    color: white;
}

.metric-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .metric-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.metric-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.15);
}

.metric-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #4ECDC4;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.metric-change {
    font-size: 14px;
    color: #4ECDC4;
    font-weight: 600;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.chart-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 16px;
    padding: 20px;
    height: 350px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.5);
}

.chart-container {
    height: 250px;
    position: relative;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

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

.status-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.status-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.5);
}

.hero-header {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(68, 160, 141, 0.05));
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.section-header {
    padding: 30px 20px 15px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFE66D, transparent);
    border-radius: 2px;
}

.dashboard-main {
    min-height: calc(100vh - 200px);
    padding-bottom: 50px;
}

.dashboard-footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(78, 205, 196, 0.2);
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 50px;
}

.toggle-buttons-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.toggle-btn {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: rgba(78, 205, 196, 0.8);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.demo-btn.active {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.8);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-active {
    background: #4ECDC4;
    box-shadow: 0 0 8px #4ECDC4;
}

.demo-active {
    background: #FFE66D;
    box-shadow: 0 0 8px #FFE66D;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

html {
    scroll-behavior: smooth;
}
