* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0f172a; color: #e2e8f0; }
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-box { background: #1e293b; padding: 40px; border-radius: 12px; width: 400px; border: 1px solid #334155; }
.login-box h1 { text-align: center; margin-bottom: 8px; color: #60a5fa; font-size: 24px; }
.login-box .subtitle { text-align: center; color: #64748b; margin-bottom: 24px; font-size: 14px; }
.login-box input { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #334155; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 14px; }
.login-box input:focus { outline: none; border-color: #60a5fa; }
.login-box button { width: 100%; padding: 12px; background: #2563eb; color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600; }
.login-box button:hover { background: #1d4ed8; }
.error { background: #7f1d1d; color: #fca5a5; padding: 10px; border-radius: 8px; margin-bottom: 16px; text-align: center; font-size: 14px; }
.success { background: #14532d; color: #86efac; padding: 10px; border-radius: 8px; margin-bottom: 16px; text-align: center; font-size: 14px; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1e293b; border-right: 1px solid #334155; padding: 20px 0; flex-shrink: 0; }
.sidebar .logo { padding: 0 20px 20px; border-bottom: 1px solid #334155; margin-bottom: 16px; }
.sidebar .logo h2 { color: #60a5fa; font-size: 18px; }
.sidebar .logo small { color: #64748b; font-size: 12px; }
.sidebar nav a { display: flex; align-items: center; padding: 10px 20px; color: #94a3b8; font-size: 14px; transition: all 0.2s; }
.sidebar nav a:hover, .sidebar nav a.active { background: #334155; color: #e2e8f0; text-decoration: none; }
.sidebar nav a .icon { margin-right: 10px; font-size: 18px; }
.sidebar .user-info { padding: 16px 20px; border-top: 1px solid #334155; margin-top: auto; position: absolute; bottom: 0; width: 240px; }
.sidebar .user-info .name { color: #e2e8f0; font-size: 14px; font-weight: 600; }
.sidebar .user-info .role { color: #64748b; font-size: 12px; }

.main { flex: 1; padding: 24px; overflow-x: auto; }
.main h1 { font-size: 24px; margin-bottom: 24px; color: #f1f5f9; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 16px; }
.card .label { color: #64748b; font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.card .value { font-size: 28px; font-weight: 700; color: #f1f5f9; }
.card .value.green { color: #4ade80; }
.card .value.red { color: #f87171; }
.card .value.blue { color: #60a5fa; }
.card .value.orange { color: #fb923c; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 24px; }
.service-card { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.service-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.service-dot.healthy { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.service-dot.degraded { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
.service-dot.offline { background: #f87171; box-shadow: 0 0 8px #f87171; }
.service-name { font-weight: 600; font-size: 14px; }
.service-status { font-size: 12px; color: #64748b; }

table { width: 100%; border-collapse: collapse; background: #1e293b; border-radius: 10px; overflow: hidden; }
th { background: #334155; padding: 12px 16px; text-align: left; font-size: 12px; color: #94a3b8; text-transform: uppercase; }
td { padding: 12px 16px; border-bottom: 1px solid #1e293b; font-size: 14px; }
tr:nth-child(even) { background: #1e293b; }
tr:nth-child(odd) { background: #172033; }
tr:hover { background: #1e3a5f; }

.badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge.admin { background: #7c3aed33; color: #a78bfa; }
.badge.manager { background: #2563eb33; color: #60a5fa; }
.badge.technician { background: #059669033; color: #34d399; }
.badge.user { background: #64748b33; color: #94a3b8; }
.badge.online { background: #16a34a33; color: #4ade80; }
.badge.offline { background: #dc262633; color: #f87171; }
.badge.unknown { background: #64748b33; color: #94a3b8; }
.badge.pending { background: #d9770633; color: #fb923c; }
.badge.paid { background: #16a34a33; color: #4ade80; }
.badge.overdue { background: #dc262633; color: #f87171; }

.btn { padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: white; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #94a3b8; font-size: 14px; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #334155; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 14px; }
.form-group select { appearance: none; }
