﻿
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --danger-color: #fb5607;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.bodyDash {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 20px;
}

.dashboard-header {
    background: linear-gradient(to right, #4361ee, #3f37c9);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.room-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: none;
}

    .room-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background: linear-gradient(to right, #4361ee, #3f37c9);
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: none;
}

.sensor-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .sensor-item:hover {
        background-color: rgba(67, 97, 238, 0.05);
    }

.sensor-icon {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.sensor-value {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sensor-name {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.no-sensors {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.dashboard-stats {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4361ee;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .room-card {
        margin-bottom: 1rem;
    }

    .sensor-item {
        padding: 0.75rem 0.25rem;
    }

    .sensor-icon {
        font-size: 1.5rem;
    }

    .sensor-value {
        font-size: 1.1rem;
    }
}
