* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f172a; color: #e2e8f0; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { font-size: 2em; margin-bottom: 10px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 1.4em; margin: 30px 0 15px; color: #94a3b8; border-bottom: 1px solid #1e293b; padding-bottom: 8px; }
h3 { font-size: 1.1em; margin: 15px 0 8px; color: #cbd5e1; }
.subtitle { color: #64748b; margin-bottom: 30px; }
.card { background: #1e293b; border-radius: 12px; padding: 20px; margin-bottom: 15px; border: 1px solid #334155; }
.card:hover { border-color: #3b82f6; }
.method { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-right: 8px; }
.method-post { background: #065f46; color: #6ee7b7; }
.method-get { background: #1e3a5f; color: #7dd3fc; }
.method-put { background: #713f12; color: #fcd34d; }
.method-delete { background: #7f1d1d; color: #fca5a5; }
.endpoint { font-family: 'SF Mono', Monaco, monospace; font-size: 14px; color: #f1f5f9; }
.desc { color: #94a3b8; font-size: 14px; margin-top: 5px; }
.param { display: inline-block; background: #0f172a; padding: 1px 6px; border-radius: 3px; font-family: monospace; font-size: 13px; color: #7dd3fc; margin: 2px; }
.required { color: #f87171; }
.nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.nav a { color: #94a3b8; text-decoration: none; padding: 6px 14px; border-radius: 8px; background: #1e293b; font-size: 14px; transition: all 0.2s; }
.nav a:hover { background: #334155; color: #f1f5f9; }
.badge { display: inline-block; background: #3b82f6; color: white; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-left: 5px; }
code { background: #0f172a; padding: 2px 6px; border-radius: 3px; font-family: monospace; font-size: 13px; }
pre { background: #0f172a; padding: 15px; border-radius: 8px; overflow-x: auto; font-size: 13px; margin: 10px 0; }
.header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-link { color: #8b5cf6; text-decoration: none; padding: 8px 16px; border: 1px solid #8b5cf6; border-radius: 8px; font-size: 14px; }
.admin-link:hover { background: #8b5cf6; color: white; }

/* Admin styles */
.login-box { max-width: 400px; margin: 100px auto; text-align: center; }
.login-box input { width: 100%; padding: 12px; background: #1e293b; border: 1px solid #334155; border-radius: 8px; color: #f1f5f9; font-size: 16px; margin: 10px 0; }
.login-box button, .btn { padding: 10px 20px; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.btn:hover { background: #2563eb; }
.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #22c55e; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #1e293b; font-size: 14px; }
th { color: #64748b; font-weight: 600; }
.status-on { color: #22c55e; }
.status-off { color: #ef4444; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: #1e293b; border-radius: 12px; padding: 20px; text-align: center; }
.stat-num { font-size: 2em; font-weight: 700; color: #3b82f6; }
.stat-label { color: #64748b; font-size: 14px; }
.tabs { display: flex; gap: 5px; margin-bottom: 20px; }
.tab { padding: 8px 16px; background: #1e293b; border: none; color: #94a3b8; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 14px; }
.tab.active { background: #334155; color: #f1f5f9; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #1e293b; border-radius: 12px; padding: 25px; width: 500px; max-width: 90vw; }
.modal h3 { margin-bottom: 15px; }
.modal input, .modal select { width: 100%; padding: 10px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; color: #f1f5f9; margin: 5px 0 12px; font-size: 14px; }
.modal label { color: #94a3b8; font-size: 13px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; }
.key-display { background: #0f172a; padding: 10px; border-radius: 6px; font-family: monospace; word-break: break-all; margin: 10px 0; font-size: 14px; color: #fcd34d; }
.hidden { display: none; }
.toast { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: 8px; color: white; font-size: 14px; z-index: 200; animation: fadeIn 0.3s; }
.toast-success { background: #22c55e; }
.toast-error { background: #ef4444; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
