/* =====================================================
ADULLAM GLOBAL ACCESS - ADMIN DASHBOARD STYLES
===================================================== */

:root { 
	--bg-light: #f4f7fa;
	--border-color: #e2e8f0;
	--sidebar-width: 260px;
	--sidebar-collapsed-width: 80px;
	--topbar-height: 70px;
}
 

/* Dashboard Wrapper Layout */
.admin-wrapper {
	display: flex;
	min-height: 100vh;
	width: 100%;
	background: var(--bg-light);
}

/* Sidebar Styling */
.admin-sidebar {
	width: var(--sidebar-width);
	background-color: var(--navy);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
	height: var(--topbar-height);
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 800;
	font-size: 18px;
	overflow: hidden;
	white-space: nowrap;
}

.brand-icon {
	font-size: 22px;
	color: var(--cyan);
}

.brand-text span {
	color: var(--cyan);
}

.btn-toggle-sidebar {
	background: rgba(255, 255, 255, 0.08);
	border: none;
	color: #ffffff;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-toggle-sidebar:hover {
	background: var(--cyan);
}

/* Sidebar Menu */
.sidebar-body {
	flex: 1;
	padding: 20px 0;
	overflow-y: auto;
}

.nav-category {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	padding: 0 20px;
	margin-bottom: 8px;
	white-space: nowrap;
}

.nav-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.admin-sidebar .nav-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 20px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.nav-link i {
	font-size: 18px;
	min-width: 20px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-item.active .admin-sidebar .nav-link {
	color: #ffffff;
	background: rgba(64, 179, 206, 0.15);
	border-left: 4px solid var(--cyan);
}

.admin-sidebar .nav-item.active .admin-sidebar .nav-link i {
	color: var(--cyan);
}

.badge-count {
	margin-left: auto;
	background: var(--cyan);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 50px;
}

/* Sidebar Footer Profile */
.sidebar-footer {
	padding: 16px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.user-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
}

.avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

.user-info {
	display: flex;
	flex-direction: column;
	white-space: nowrap;
}

.user-name {
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
}

.user-role {
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
}

.btn-logout {
	color: rgba(255, 255, 255, 0.5);
	font-size: 18px;
	transition: color 0.2s ease;
}

.btn-logout:hover {
	color: #ef4444;
}

/* Main Content Workspace */
.admin-main {
	flex: 1;
	margin-left: var(--sidebar-width);
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Topbar Header */
.admin-topbar {
	height: var(--topbar-height);
	background: #ffffff;
	border-bottom: 1px solid var(--border-color);
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 900;
}

.search-box {
	position: relative;
	width: 320px;
}

.search-box i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
}

.search-box input {
	padding-left: 40px;
	border-radius: 50px;
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	font-size: 13px;
}

.btn-icon {
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	position: relative;
	cursor: pointer;
}

.notification-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	background: var(--cyan);
	border-radius: 50%;
}

.btn-cyan-sm {
	background: var(--cyan);
	color: #ffffff;
	border: none;
	padding: 8px 18px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* Workspace Body */
.admin-body {
	padding: 30px;
}

.page-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
}

.page-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 4px 0 0 0;
}

.date-badge {
	background: #ffffff;
	border: 1px solid var(--border-color);
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
}

/* Metric Cards */
.stat-widget {
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.widget-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.icon-cyan {
	background: rgba(64, 179, 206, 0.12);
	color: var(--cyan);
}
.icon-navy {
	background: rgba(18, 42, 78, 0.1);
	color: var(--navy);
}
.icon-green {
	background: rgba(34, 197, 94, 0.12);
	color: #22c55e;
}
.icon-purple {
	background: rgba(168, 85, 247, 0.12);
	color: #a855f7;
}

.widget-info h3 {
	font-size: 20px;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
}

.widget-info p {
	font-size: 12px;
	color: #64748b;
	margin: 2px 0 0 0;
}

/* Tables */
.table-card {
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	overflow: hidden;
}

.card-header {
	background: transparent;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-color);
}

.card-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
}

.btn-filter {
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.admin-table th {
	background: var(--bg-light);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #64748b;
	padding: 14px 24px;
	border-bottom: 1px solid var(--border-color);
}

.admin-table td {
	padding: 16px 24px;
	border-bottom: 1px solid var(--border-color);
	font-size: 13px;
}

.avatar-initials {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(18, 42, 78, 0.1);
	color: var(--navy);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.status-badge {
	padding: 4px 10px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
}

.status-review {
	background: #fef3c7;
	color: #d97706;
}
.status-approved {
	background: #dcfce7;
	color: #15803d;
}
.status-pending {
	background: #e0f2fe;
	color: #0369a1;
}

.btn-action {
	background: transparent;
	border: none;
	color: #94a3b8;
	padding: 4px 8px;
	cursor: pointer;
}

.btn-action:hover {
	color: var(--navy);
}

/* =====================================================
COLLAPSED PORTABLE SIDEBAR STATE (JS Activated)
===================================================== */
.admin-wrapper.collapsed .admin-sidebar {
	width: var(--sidebar-collapsed-width);
}

.admin-wrapper.collapsed .admin-main {
	margin-left: var(--sidebar-collapsed-width);
}

.admin-wrapper.collapsed .brand-text,
.admin-wrapper.collapsed .link-text,
.admin-wrapper.collapsed .nav-category,
.admin-wrapper.collapsed .user-info,
.admin-wrapper.collapsed .badge-count {
	display: none !important;
}

.admin-wrapper.collapsed .sidebar-header {
	justify-content: center;
	padding: 0;
}

.admin-wrapper.collapsed .sidebar-brand {
	justify-content: center;
}

.admin-wrapper.collapsed .nav-link {
	justify-content: center;
	padding: 14px 0;
}

.admin-wrapper.collapsed .sidebar-footer {
	justify-content: center;
	padding: 16px 0;
}

.admin-wrapper.collapsed .btn-logout {
	display: none;
}