* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, sans-serif; }
body { background: #0f1115; color: #eee; }
.hidden { display: none !important; }

#login-view { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: #1a1d24; padding: 40px; border-radius: 12px; width: 320px; text-align: center; }
.login-box h1 { color: #4ade80; margin-bottom: 4px; font-size: 32px; }
.login-box p { color: #888; margin-bottom: 24px; }
.login-box input { width: 100%; padding: 10px; margin-bottom: 12px; border-radius: 6px; border: 1px solid #333; background: #0f1115; color: #eee; }
.login-box button { width: 100%; padding: 10px; background: #4ade80; color: #0f1115; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }
.error { color: #f87171; margin-top: 8px; min-height: 20px; font-size: 14px; }

#app-view { display: flex; height: 100vh; }
.sidebar { width: 220px; background: #14161c; padding: 20px; display: flex; flex-direction: column; }
.sidebar h2 { color: #4ade80; margin-bottom: 24px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-btn { text-align: left; background: none; border: none; color: #ccc; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.nav-btn:hover { background: #22252c; }
.nav-btn.active { background: #4ade80; color: #0f1115; font-weight: bold; }
#logout-btn { background: #2a2d34; color: #eee; border: none; padding: 10px; border-radius: 6px; cursor: pointer; }

.content { flex: 1; padding: 30px; overflow-y: auto; }
.content h1 { margin-bottom: 20px; }
.tab { display: none; }
.tab.active { display: block; }

.cards { display: flex; gap: 16px; }
.card { background: #1a1d24; padding: 24px; border-radius: 10px; text-align: center; min-width: 140px; }
.card span { font-size: 28px; font-weight: bold; color: #4ade80; display: block; }
.card p { color: #999; margin-top: 6px; }

.inline-form { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.inline-form input, .inline-form select { padding: 8px; border-radius: 6px; border: 1px solid #333; background: #1a1d24; color: #eee; }
.inline-form button { padding: 8px 16px; background: #4ade80; color: #0f1115; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }

table { width: 100%; border-collapse: collapse; background: #1a1d24; border-radius: 10px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #24272e; font-size: 14px; }
th { background: #22252c; color: #4ade80; }
td button { background: #f87171; border: none; color: #0f1115; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
