body {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #0f1923;
	min-height: 100vh;
	color: #e2e8f0;
	line-height: 1.6;
}

.header {
	padding: 10px 24px;
	border-bottom: 1px solid rgba(239, 68, 68, 0.15);
	background: linear-gradient(135deg, #0b0f14 0%, #1a1020 100%);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	position: sticky;
	top: 0;
	z-index: 100;
}

.logo {
	font-size: 28px;
	font-weight: 900;
	background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #eab308 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.header-subtitle {
	font-size: 13px;
	color: #64748b;
	margin-left: 12px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.header-user {
	color: #94a3b8;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.container {
	max-width: 1200px;
	margin: 24px auto;
	padding: 0 16px;
}

h1 {
	margin: 0 0 24px 0;
	font-size: 32px;
	font-weight: 800;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -1px;
	position: relative;
	padding-bottom: 16px;
}

h1::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
	border-radius: 2px;
}

h2 {
	font-size: 20px;
	font-weight: 700;
	color: #e2e8f0;
	margin: 0 0 16px 0;
}

.button {
	padding: 8px 16px;
	border-radius: 8px;
	background: linear-gradient(135deg, #334155 0%, #475569 100%);
	color: #e2e8f0;
	text-decoration: none;
	border: 1px solid rgba(71, 85, 105, 0.3);
	font-size: 14px;
	transition: background 0.15s ease, border-color 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.button:hover {
	background: linear-gradient(135deg, #475569 0%, #64748b 100%);
	border-color: rgba(239, 68, 68, 0.4);
}

.button.active {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.button.primary {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	border-color: rgba(239, 68, 68, 0.3);
	color: #fff;
	font-weight: 600;
}

.button.primary:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.button.success {
	background: linear-gradient(135deg, #047857 0%, #10b981 100%);
	border-color: rgba(16, 185, 129, 0.3);
	color: #fff;
	font-weight: 600;
}

.button.success:hover {
	background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.header .button {
	background: transparent;
	border: 2px solid rgba(239, 68, 68, 0.2);
	color: #e2e8f0;
	padding: 6px 14px;
}

.header .button:hover {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.header .button.active {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.panel {
	padding: 20px;
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(239, 68, 68, 0.1);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
	border: 1px solid rgba(239, 68, 68, 0.12);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	border-color: rgba(239, 68, 68, 0.25);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

input, select {
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid rgba(239, 68, 68, 0.15);
	background: rgba(11, 18, 32, 0.6);
	color: #e2e8f0;
	font-size: 14px;
	transition: all 0.2s ease;
	box-sizing: border-box;
	font-weight: 500;
}

input:focus, select:focus {
	outline: none;
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
	background: rgba(15, 23, 42, 0.8);
}

label {
	display: block;
	color: #cbd5e1;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	margin-bottom: 6px;
}

.badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.badge.ok {
	background: rgba(16, 185, 129, 0.15);
	color: #34d399;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.err {
	background: rgba(239, 68, 68, 0.15);
	color: #fca5a5;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.warn {
	background: rgba(245, 158, 11, 0.15);
	color: #fbbf24;
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.info {
	background: rgba(59, 130, 246, 0.15);
	color: #93c5fd;
	border: 1px solid rgba(59, 130, 246, 0.3);
}

table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
}

th, td {
	padding: 10px 14px;
	border-bottom: 1px solid rgba(31, 41, 55, 0.5);
	text-align: left;
	font-size: 14px;
}

th {
	color: #cbd5e1;
	font-weight: 700;
	background: rgba(11, 18, 32, 0.8);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.8px;
	border-bottom: 2px solid rgba(239, 68, 68, 0.15);
}

tbody tr {
	transition: background 0.15s ease;
}

tbody tr:nth-child(even) {
	background: rgba(15, 23, 42, 0.3);
}

tbody tr:hover {
	background: rgba(239, 68, 68, 0.06);
}

.modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10002;
	animation: fadeIn 0.2s ease;
}

.modal {
	background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: 16px;
	padding: 28px;
	width: 400px;
	max-width: calc(100% - 32px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-title {
	font-weight: 800;
	font-size: 22px;
	margin-bottom: 16px;
	color: #e2e8f0;
}

.modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
}

.modal label {
	margin-top: 14px;
}

.modal label:first-of-type {
	margin-top: 0;
}

.modal input, .modal select {
	width: 100%;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #0f172a;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #334155 0%, #475569 100%);
	border-radius: 5px;
	border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

@media (max-width: 768px) {
	.container {
		padding: 0 10px;
		margin: 12px auto;
	}
	.header {
		padding: 8px 12px;
	}
	.logo {
		font-size: 22px;
	}
	.header-subtitle {
		display: none;
	}
	h1 {
		font-size: 24px;
	}
}
