:root {
	--bg: #0f172a;
	--panel: #ffffff;
	--text: #1e293b;
	--muted: #64748b;
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--danger: #dc2626;
	--success: #16a34a;
	--border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: #f1f5f9;
	color: var(--text);
}

.app-header {
	background: var(--bg);
	color: #fff;
	padding: 0.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.app-header a { color: #fff; text-decoration: none; }
.app-header nav a { margin-right: 1rem; opacity: 0.85; }
.app-header nav a:hover { opacity: 1; }

.app-container {
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.auth-card {
	max-width: 420px;
	margin: 4rem auto;
}

label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; }
input[type=text], input[type=password], input[type=email], select {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

button, .btn {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
}
button:hover, .btn:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); }
.btn-muted { background: var(--muted); }

.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f1f5f9; color: #64748b; }

.muted { color: var(--muted); font-size: 0.85rem; }
.form-actions { margin-top: 1rem; }
.captcha-box { background: #f8fafc; border: 1px dashed var(--border); padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; text-align: center; font-weight: 700; letter-spacing: 1px; }
