@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
	--primary: #c28e8e; /* Premium Rose Gold */
	--primary-hover: #b37d7d;
	--primary-rgb: 194, 142, 142;
	--bg: #090808; /* Obsidian Night */
	--panel-bg: #141212;
	--panel-card: rgba(26, 24, 24, 0.6);
	--sidebar-bg: #0d0c0c;
	--text-primary: #f5f3f3;
	--text-secondary: #a8a2a2;
	--border-color: rgba(194, 142, 142, 0.1);
	--accent-color: #d9b8b8;
	--error: #e57373;
	--success: #81c784;
	--warning: #ffd54f;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Outfit", sans-serif;
	background: var(--bg);
	color: var(--text-primary);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* Authentication Page layout */
.auth-page {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px;
	background: 
		radial-gradient(circle at 10% 20%, rgba(194, 142, 142, 0.08) 0%, transparent 40%),
		radial-gradient(circle at 90% 80%, rgba(217, 184, 184, 0.05) 0%, transparent 40%),
		#090808;
}

.auth-shell {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 0;
	width: min(960px, 100%);
	border-radius: 28px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.auth-panel {
	background: var(--panel-bg);
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.brand-panel {
	background: linear-gradient(135deg, #1f1a1a, #0d0c0c);
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-right: 1px solid var(--border-color);
}

.brand-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--primary), var(--accent-color));
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.5px;
	margin-bottom: 24px;
	color: #090808;
	box-shadow: 0 8px 24px rgba(194, 142, 142, 0.3);
}

.brand-panel h1 {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ffffff, var(--accent-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.5px;
}

.brand-panel p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 28px;
}

.brand-panel ul {
	list-style: none;
}

.brand-panel li {
	position: relative;
	color: var(--text-secondary);
	margin-bottom: 12px;
	padding-left: 28px;
	font-size: 14px;
}

.brand-panel li::before {
	content: "✦";
	position: absolute;
	left: 0;
	color: var(--primary);
	font-size: 14px;
}

.form-panel h2 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #fff;
	letter-spacing: -0.5px;
}

.form-panel p {
	color: var(--text-secondary);
	font-size: 14px;
	margin-bottom: 32px;
}

.panel-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 8px;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.auth-form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.auth-form input {
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	background: rgba(255, 255, 255, 0.02);
	color: #fff;
	font-size: 15px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

.auth-form input:focus {
	border-color: var(--primary);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 0 0 3px rgba(194, 142, 142, 0.15);
}

.primary-btn {
	border: none;
	border-radius: 12px;
	padding: 14px 20px;
	background: linear-gradient(135deg, var(--primary), var(--primary-hover));
	color: #0d0c0c;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 20px rgba(194, 142, 142, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.primary-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(194, 142, 142, 0.35);
	filter: brightness(1.05);
}

.primary-btn:active {
	transform: translateY(0);
}

.secondary-btn {
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 10px 18px;
	background: rgba(255, 255, 255, 0.02);
	color: var(--text-primary);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.secondary-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--primary);
	color: #fff;
}

.auth-message {
	margin-top: 20px;
	color: var(--error);
	text-align: center;
	font-weight: 600;
	font-size: 14px;
}

/* App Shell Layout */
.app-shell {
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
	background: var(--sidebar-bg);
	border-right: 1px solid var(--border-color);
	padding: 40px 24px;
	display: flex;
	flex-direction: column;
}

.brand-block {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
}

.brand-block .brand-badge {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 15px;
	margin-bottom: 0;
	box-shadow: none;
	font-weight: 800;
}

.brand-block h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.5px;
}

.brand-block p {
	margin: 1px 0 0;
	font-size: 11px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.side-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.side-nav a {
	text-decoration: none;
	color: var(--text-secondary);
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid transparent;
}

.side-nav a:hover {
	background: rgba(194, 142, 142, 0.05);
	color: #fff;
	border-color: rgba(194, 142, 142, 0.05);
}

.side-nav a.active {
	background: rgba(194, 142, 142, 0.08);
	color: var(--primary);
	font-weight: 600;
	border-color: rgba(194, 142, 142, 0.15);
	box-shadow: inset 0 0 12px rgba(194, 142, 142, 0.05);
}

/* Main Content Workspace */
.main-content {
	padding: 50px;
	overflow-y: auto;
	background: 
		radial-gradient(circle at 50% 0%, rgba(194, 142, 142, 0.03) 0%, transparent 50%),
		var(--bg);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
}

.topbar h1 {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.8px;
}

.topbar p.muted {
	margin-top: 4px;
	font-size: 14px;
	color: var(--text-secondary);
}

.user-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border-color);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 10px var(--success);
}

/* Dashboard Statistics Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.stat-card {
	background: var(--panel-card);
	backdrop-filter: blur(12px);
	border-radius: 24px;
	padding: 28px;
	border: 1px solid var(--border-color);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
	transform: translateY(-4px);
	border-color: rgba(194, 142, 142, 0.25);
	box-shadow: 0 15px 35px rgba(194, 142, 142, 0.08);
}

.stat-card .label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--text-secondary);
	margin-bottom: 16px;
}

.stat-card strong {
	display: block;
	font-size: 38px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 6px;
	letter-spacing: -1px;
}

.stat-card small {
	font-size: 13px;
	color: var(--text-secondary);
}

/* Panels & Tables */
.content-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.panel {
	background: var(--panel-card);
	backdrop-filter: blur(12px);
	border-radius: 28px;
	padding: 36px;
	border: 1px solid var(--border-color);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.panel h3 {
	margin-bottom: 24px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 16px;
	letter-spacing: -0.3px;
}

.list-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
	border-bottom: none;
}

/* Tables styling */
table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

th {
	padding: 14px 16px;
	color: var(--text-secondary);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	border-bottom: 1px solid var(--border-color);
}

td {
	padding: 18px 16px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
	font-size: 14.5px;
}

tr:last-child td {
	border-bottom: none;
}

tr:hover td {
	background: rgba(194, 142, 142, 0.02);
}

/* Inputs & Form Controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	background: rgba(255, 255, 255, 0.02);
	color: #fff;
	font-size: 14.5px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	border-color: var(--primary);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 0 0 3px rgba(194, 142, 142, 0.15);
}

label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

/* Badges */
.status-pill {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.status-in_queue {
	background: rgba(255, 213, 79, 0.12);
	color: var(--warning);
	border: 1px solid rgba(255, 213, 79, 0.2);
}

.status-serving {
	background: rgba(194, 142, 142, 0.12);
	color: var(--primary);
	border: 1px solid rgba(194, 142, 142, 0.2);
}

.status-completed {
	background: rgba(129, 199, 132, 0.12);
	color: var(--success);
	border: 1px solid rgba(129, 199, 132, 0.2);
}

.status-cancelled {
	background: rgba(229, 115, 115, 0.12);
	color: var(--error);
	border: 1px solid rgba(229, 115, 115, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.app-shell {
		grid-template-columns: 1fr;
	}

	.sidebar {
		border-right: none;
		border-bottom: 1px solid var(--border-color);
		padding: 24px;
	}

	.main-content {
		padding: 32px 24px;
	}
}

@media (max-width: 768px) {
	.auth-shell,
	.stats-grid,
	.content-grid {
		grid-template-columns: 1fr;
	}
	
	.auth-panel,
	.brand-panel {
		padding: 32px;
	}
	
	.brand-panel {
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}
}
