:root {
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary: #3b82f6;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 16px;
}

body { 
    font-family: 'Inter', system-ui, sans-serif; 
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    background-attachment: fixed;
    color: var(--text-main); 
    padding: 20px 10px; 
    margin: 0; 
}

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

/* Header & Status */
header { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.header-main { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 1.4rem; margin: 0; display: flex; align-items: center; gap: 10px; }

.status-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.4);
}
.status-online { background: rgba(34, 197, 94, 0.2); color: #166534; border-color: rgba(34, 197, 94, 0.3); }
.status-offline { background: rgba(239, 68, 68, 0.2); color: #991b1b; border-color: rgba(239, 68, 68, 0.3); }
.status-loading { background: rgba(234, 179, 8, 0.2); color: #854d0e; border-color: rgba(234, 179, 8, 0.3); }

/* Glass Cards */
.card { 
    background: var(--glass-bg); backdrop-filter: blur(20px); 
    border: 1px solid var(--glass-border); border-radius: var(--radius); 
    padding: 20px; margin-bottom: 15px; box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.tabs { display: flex; background: rgba(0,0,0,0.05); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: none; border-radius: 8px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.input-row { display: flex; gap: 8px; margin-top: 8px; }
input, select { flex: 1; padding: 12px; border: 1px solid rgba(0,0,0,0.05); border-radius: 10px; background: rgba(255,255,255,0.7); font-size: 16px; }

.btn-full { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 10px; font-weight: 600; margin-top: 10px; }
.btn-icon { padding: 10px 14px; background: rgba(0,0,0,0.05); border: none; border-radius: 10px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-stat { background: rgba(255,255,255,0.6); padding: 12px; border-radius: 14px; text-align: center; border: 1px solid rgba(255,255,255,0.5); }
.card-stat h3 { font-size: 0.65rem; color: var(--text-muted); margin: 0; text-transform: uppercase; }
.stat-value { font-size: 1.1rem; font-weight: 700; margin-top: 4px; display: block; }

.tab-content { display: none; }
.tab-content.active { display: block; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
td { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }