.main {
    background: linear-gradient(135deg, #052c53 10%, #007bff 100%);
    min-height: 100vh;
    padding: 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    padding-top: 20px;
}

.hero-img {
    background: #052c53 !important;
    border-radius: 20px !important;
    padding: 40px !important;
    backdrop-filter: blur(10px) !important;
    display: inline-block !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-img img {
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 20px !important;
}

.hero-img h3 {
    color: white !important;
    margin-bottom: 20px !important;
    font-size: 1.8rem;
    font-weight: 600;
}

.hero-img p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0 !important;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.status-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.status-card.warning::before {
    background: linear-gradient(90deg, #ff9800, #f57c00);
}

.status-card.danger::before {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4CAF50;
}

.status-card.warning .status-icon {
    color: #ff9800;
}

.status-card.danger .status-icon {
    color: #f44336;
}

.status-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-value {
    font-size: 1.1rem;
    color: #666;
}

.sensors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.sensor-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sensor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.sensor-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sensor-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.sensor-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.sensor-unit {
    font-size: 0.8rem;
    color: #999;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.map-container,
.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

#map {
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.chart-btn.active {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

#trendChart {
    max-height: 350px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-good {
    background-color: #4CAF50;
}

.status-warning {
    background-color: #ff9800;
}

.status-danger {
    background-color: #f44336;
}

.last-update {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    font-size: 0.9rem;
}

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

    .hero-img h3 {
        font-size: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sensors-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}