/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
}

.dashboard {
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Servers grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Server card */
.server-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #3a3a3a;
}

.server-header {
    margin-bottom: 20px;
}

.server-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.server-status .status-text {
    color: #888;
    font-size: 14px;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 20px;
}

.server-chart {
    width: 100% !important;
    height: 100% !important;
}

.chart-labels {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.label-left {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

/* Server footer */
.server-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.status-dot.online.server1 {
    background: #2559da;
    box-shadow: 0 0 8px rgba(37, 89, 218, 0.4);
}

.status-dot.online.server2 {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.status-dot.online.server3 {
    background: #9747ff;
    box-shadow: 0 0 8px rgba(151, 71, 255, 0.4);
}

.status-dot.offline {
    background: #666;
}

.status-label {
    color: #888;
    font-size: 14px;
}

/* Admin controls */
.admin-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    display: none;
}

.admin-controls.visible {
    display: block;
}

.admin-button {
    background: #007acc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
}

.admin-button:hover {
    background: #005a9a;
}

.admin-button.danger {
    background: #cc3333;
}

.admin-button.danger:hover {
    background: #aa2222;
}

/* Responsive design */
@media (max-width: 768px) {
    .servers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard {
        padding: 15px;
    }

    .server-card {
        padding: 15px;
    }

    .chart-container {
        height: 150px;
    }
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #888;
}

/* Auto-refresh indicator */
.refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2a2a2a;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
    font-size: 12px;
    color: #888;
}

.refresh-indicator.active {
    color: #00ff88;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
