* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background: #0f172a; 
    color: #e2e8f0;      
    line-height: 1.5;
}

#container {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}


#container_left, #container_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


#lakes, #photos, #stats, #services, #internal-services {
    background: #1e293b; 
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    overflow-x: auto;
}

.service-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #334155;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8; 
}

.service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    padding: 8px 0;
    border-bottom: 1px solid #334155;
    align-items: center;
    font-size: 14px;
}

.service span {
    text-align:left;
}

.service:last-child {
    border-bottom: none;
}


.service-name a {
    color: #fbbf24; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.service-name a:hover {
    color: #facc15; 
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #334155;
    color: #e2e8f0;
    width: 80%;
    justify-content: center;
}

.status-indicator::before {
    content: "●";
    font-size: 12px;
}

.status-online {
    background: #166534;
    color: #bbf7d0;
}
.status-online::before {
    color: #22c55e;
}

.status-offline {
    background: #7f1d1d;
    color: #fecaca;
}
.status-offline::before {
    color: #ef4444;
}

.status-loading {
    background: #78350f;
    color: #fde68a;
    animation: pulse 1.5s infinite;
}
.status-loading::before {
    color: #f59e0b;
}


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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.stat-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.stat-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-title {
    font-weight: 700;
    font-size: 15px;
    color: #38bdf8; 
}

.stat-values {
    font-size: 13px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

@media (max-width: 900px) {
    #container {
        flex-direction: column;
    }
}

.service-health {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.service-health img {
    height: 22px;
    border-radius: 6px;
    background: #1e293b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: opacity 0.4s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.service-health img:hover {
    opacity: 0.85;
    transform: scale(1.03);
}
