﻿* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #f5f7fb;
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


/* SIDEBAR */

.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 260px;
	background: #111827;
	color: white;
	z-index: 1001;
	overflow-y: auto;
	transition: transform .25s ease;
}


.brand {
	height: 75px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255,255,255,.07);
}


.brand-icon {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: #0c4cd8;
	font-size: 20px;
}


.brand-text strong {
	display: block;
	font-size: 15px;
}


.brand-text small {
	color: #9ca3af;
	font-size: 10px;
}


/* MENU */

.menu-title {
	padding: 20px 18px 8px;
	color: #6b7280;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
}


.sidebar-menu {
	display: flex;
	align-items: center;
	gap: 12px;
	width: calc(100% - 20px);
	margin: 3px 10px;
	padding: 11px 12px;
	border-radius: 8px;
	color: #d1d5db;
	text-decoration: none;
	font-size: 14px;
}


	.sidebar-menu:hover {
		background: rgba(255,255,255,.07);
		color: white;
	}


.sidebar-submenu {
	padding: 2px 0 5px 30px;
}


.sidebar-submenu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	margin-right: 10px;
	border-left: 1px solid #374151;
	color: #9ca3af;
	text-decoration: none;
	font-size: 13px;
}


	.sidebar-submenu-item:hover {
		background: rgba(255,255,255,.05);
		color: white;
	}


.logout-menu {
	color: #fca5a5 !important;
}


/* MAIN */

.main {
	margin-left: 260px;
	min-height: 100vh;
}


.topbar {
	height: 75px;
	background: white;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	position: sticky;
	top: 0;
	z-index: 900;
}


.mobile-menu {
	display: none;
	border: 0;
	background: transparent;
	font-size: 25px;
}


.content {
	padding: 28px;
}


/* USER */

.user-profile {
	display: flex;
	align-items: center;
	gap: 10px;
}


.user-avatar {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #dbeafe;
	color: #2563eb;
	font-weight: 700;
}


.user-info strong {
	display: block;
	font-size: 13px;
}


.user-info small {
	color: #6b7280;
	font-size: 10px;
}


/* STAT CARDS */

.stat-card {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,.04);
}


.stat-icon {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px;
	min-height: 42px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	margin-bottom: 12px;
}


.stat-number {
	font-size: 26px;
	font-weight: 600;
}


.stat-label {
	color: #6b7280;
	font-size: 14px;
}


/* BADGE */

.status {
	display: inline-flex !important;
	width: fit-content !important;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}


.status-pending {
	background: #fef3c7;
	color: #92400e;
}


.status-working {
	background: #dbeafe;
	color: #1d4ed8;
}


.status-completed {
	background: #dcfce7;
	color: #166534;
}


/* MOBILE */

.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 1000;
}


@media(max-width:991px) {

	.sidebar {
		transform: translateX(-100%);
	}

		.sidebar.show {
			transform: translateX(0);
		}

	.sidebar-overlay.show {
		display: block;
	}

	.main {
		margin-left: 0;
	}

	.mobile-menu {
		display: block;
	}

	.topbar {
		padding: 0 18px;
	}

	.content {
		padding: 20px;
	}
}


@media(max-width:575px) {

	.content {
		padding: 15px;
	}

	.user-info {
		display: none;
	}

	.topbar {
		height: 65px;
	}
}
