/* Admin Dashboard Styles */
:root {
	--admin-sidebar-width: 260px;
	--admin-header-height: 70px;
	--primary-color: #fdb913;
	--success-color: #22c55e;
}

.admin-body {
	background: #0a0a0a;
	color: #ffffff;
}

/* Admin Login */
.admin-login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.admin-login-card {
	background: #1a1a1a;
	border-radius: 16px;
	padding: 48px;
	max-width: 450px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.admin-logo {
	width: 120px;
	height: auto;
	display: block;
	margin: 0 auto 24px;
}

.admin-login-card h1 {
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 8px;
	color: var(--primary-color);
}

.admin-subtitle {
	text-align: center;
	color: #888;
	margin-bottom: 32px;
	font-size: 14px;
}

/* Admin Layout */
.admin-layout {
	display: flex;
	min-height: 100vh;
	background: #0a0a0a;
}

.admin-sidebar {
	width: var(--admin-sidebar-width);
	background: #1a1a1a;
	border-right: 1px solid #2a2a2a;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
	transition: transform 0.3s ease;
}

.admin-sidebar-header {
	padding: 24px;
	border-bottom: 1px solid #2a2a2a;
}

.admin-sidebar-logo {
	width: 80px;
	height: auto;
	display: block;
	margin: 0 auto 12px;
}

.admin-sidebar-title {
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	color: var(--primary-color);
}

.admin-nav {
	padding: 24px 0;
}

.admin-nav-item {
	display: flex;
	align-items: center;
	padding: 14px 24px;
	color: #888;
	text-decoration: none;
	transition: all 0.2s;
	border-left: 3px solid transparent;
}

.admin-nav-item:hover {
	background: #222;
	color: #fff;
}

.admin-nav-item.active {
	background: rgba(253, 185, 19, 0.1);
	color: var(--primary-color);
	border-left-color: var(--primary-color);
}

.admin-nav-icon {
	width: 20px;
	height: 20px;
	margin-right: 12px;
}

.admin-main {
	flex: 1;
	margin-left: var(--admin-sidebar-width);
	min-height: 100vh;
}

.admin-header {
	height: var(--admin-header-height);
	background: #1a1a1a;
	border-bottom: 1px solid #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 8px;
}

.admin-header-title {
	font-size: 24px;
	font-weight: 600;
}

.admin-header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.admin-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.admin-user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: #000;
}

.admin-user-details {
	display: flex;
	flex-direction: column;
}

.admin-user-name {
	font-size: 14px;
	font-weight: 600;
}

.admin-user-role {
	font-size: 12px;
	color: #888;
}

.admin-logout-btn {
	background: #2a2a2a;
	border: none;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.admin-logout-btn:hover {
	background: #333;
}

#loginBtn {
	width: 100% !important;
}

.admin-content {
	padding: 32px;
}

/* Dashboard Stats */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.stat-card {
	background: #1a1a1a;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #2a2a2a;
}

.stat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stat-icon.primary {
	background: rgba(253, 185, 19, 0.1);
	color: var(--primary-color);
}

.stat-icon.success {
	background: rgba(34, 197, 94, 0.1);
	color: #22c55e;
}

.stat-icon.info {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.stat-icon.warning {
	background: rgba(251, 146, 60, 0.1);
	color: #fb923c;
}

.stat-value {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 4px;
}

.stat-label {
	font-size: 14px;
	color: #888;
}

/* Data Table */
.data-table-container {
	background: #1a1a1a;
	border-radius: 12px;
	border: 1px solid #2a2a2a;
	overflow: hidden;
}

.actions-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.search-box {
	position: relative;
	flex: 1;
	min-width: 250px;
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	pointer-events: none;
}

.search-box input {
	width: 100%;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	padding: 12px 16px 12px 44px;
	color: #fff;
	font-size: 14px;
	transition: all 0.2s;
}

.search-box input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.actions-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.actions-right .btn-primary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
}

.actions-right .btn-primary svg {
	width: 20px;
	height: 20px;
}

.data-table-header {
	padding: 24px;
	border-bottom: 1px solid #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
}

.data-table thead {
	background: #0a0a0a;
}

.data-table th {
	padding: 16px 24px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.data-table td {
	padding: 16px 24px;
	border-top: 1px solid #2a2a2a;
	font-size: 14px;
}

.data-table tbody tr:hover {
	background: #222;
}

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

.badge.success {
	background: rgba(34, 197, 94, 0.1);
	color: #22c55e;
}

.badge.warning {
	background: rgba(251, 146, 60, 0.1);
	color: #fb923c;
}

.badge.danger {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.badge.info {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.badge.primary {
	background: rgba(253, 185, 19, 0.1);
	color: var(--primary-color);
}

.action-buttons {
	display: flex;
	gap: 8px;
}

.btn-icon {
	background: none;
	border: none;
	color: #888;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
	transition: all 0.2s;
}

.btn-icon:hover {
	background: #2a2a2a;
	color: #fff;
}

.btn-icon.danger:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

/* Modal */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.modal {
	background: #1a1a1a;
	border-radius: 16px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border: 1px solid #2a2a2a;
}

.modal-header {
	padding: 24px;
	border-bottom: 1px solid #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-title {
	font-size: 20px;
	font-weight: 600;
}

.modal-close {
	background: none;
	border: none;
	color: #888;
	cursor: pointer;
	font-size: 24px;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s;
}

.modal-close:hover {
	background: #2a2a2a;
	color: #fff;
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	padding: 24px;
	border-top: 1px solid #2a2a2a;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

/* Form Styles */
.admin-form .form-group {
	margin-bottom: 20px;
}

.admin-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #ccc;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
	width: 100%;
	background: #0a0a0a;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	padding: 12px 16px;
	color: #fff;
	font-size: 14px;
	transition: border-color 0.2s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.admin-form textarea {
	resize: vertical;
	min-height: 100px;
}

.password-input {
	position: relative;
}

.toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #888;
	cursor: pointer;
	padding: 4px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

/* Pagination */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px;
}

.pagination button {
	background: #2a2a2a;
	border: none;
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.pagination button:hover:not(:disabled) {
	background: #333;
}

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

.pagination button.active {
	background: var(--primary-color);
	color: #000;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 64px 24px;
}

.empty-state-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	opacity: 0.3;
}

.empty-state-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.empty-state-text {
	color: #888;
	margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
	.admin-sidebar {
		transform: translateX(-100%);
	}

	.admin-sidebar.open {
		transform: translateX(0);
	}

	.admin-main {
		margin-left: 0;
	}

	.menu-toggle {
		display: block;
	}

	.admin-content {
		padding: 16px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.data-table-container {
		overflow-x: auto;
	}

	.admin-user-details {
		display: none;
	}
}

/* Loading Spinner */
.spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #333;
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #333;
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* Comprehensive Report Page Styles */
/* Report Selector */
.report-selector {
	margin-bottom: 32px;
}

.report-type-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.report-type-card {
	background: #1a1a1a;
	border: 2px solid #2a2a2a;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.report-type-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--primary-color);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.report-type-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(253, 185, 19, 0.2);
}

.report-type-card:hover::before {
	transform: scaleX(1);
}

.report-type-card.active {
	border-color: var(--primary-color);
	background: rgba(253, 185, 19, 0.05);
}

.report-type-card.active::before {
	transform: scaleX(1);
}

.report-type-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(253, 185, 19, 0.1);
	border-radius: 12px;
	color: var(--primary-color);
	transition: all 0.3s ease;
}

.report-type-card:hover .report-type-icon,
.report-type-card.active .report-type-icon {
	background: var(--primary-color);
	color: #000;
	transform: scale(1.1);
}

.report-type-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #fff;
}

.report-type-desc {
	font-size: 13px;
	color: #888;
	line-height: 1.4;
}

/* Report Filters */
.report-filters {
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 32px;
}

.filter-group {
	margin-bottom: 20px;
}

.filter-group:last-child {
	margin-bottom: 0;
}

.filter-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #ccc;
	margin-bottom: 8px;
}

.date-range-inputs {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.form-input {
	background: #0a0a0a;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	padding: 12px 16px;
	color: #fff;
	font-size: 14px;
	transition: all 0.2s;
	flex: 1;
	min-width: 150px;
}

.form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.filter-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.filter-select {
	background: #0a0a0a;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	padding: 12px 24px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.btn-primary {
	background: var(--primary-color);
	border: none;
	color: #000;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-primary:hover {
	background: #ffc933;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
}

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

.btn-success {
	background: var(--success-color);
	border: none;
	color: #000;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-success:hover {
	background: #34d399;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

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

/* Report Content */
.report-content {
	min-height: 400px;
}

.report-placeholder {
	text-align: center;
	padding: 80px 24px;
	color: #888;
}

.report-placeholder svg {
	margin: 0 auto 24px;
	opacity: 0.3;
}

.report-placeholder h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #ccc;
}

.report-placeholder p {
	font-size: 14px;
	color: #888;
}

.report-section {
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.report-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 24px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
}

.report-title::before {
	content: "";
	width: 4px;
	height: 24px;
	background: var(--primary-color);
	border-radius: 2px;
}

/* Chart Container */
.chart-container {
	position: relative;
	height: 350px;
	background: #0a0a0a;
	border-radius: 8px;
	padding: 20px;
}

/* User Info Grid */
.user-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.info-item label {
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-item span {
	font-size: 15px;
	color: #fff;
	font-weight: 500;
}

/* Enhanced Data Table for Reports */
.report-section .data-table {
	margin-top: 16px;
}

.report-section .data-table th {
	background: #0a0a0a;
	position: sticky;
	top: 0;
	z-index: 10;
}

.report-section .data-table tbody tr {
	transition: all 0.2s;
}

.report-section .data-table tbody tr:hover {
	background: rgba(253, 185, 19, 0.05);
	transform: scale(1.01);
}

/* Stat Card Enhancements for Reports */
.report-section .stat-card {
	background: #0a0a0a;
	border: 1px solid #2a2a2a;
	transition: all 0.3s ease;
}

.report-section .stat-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.report-section .stat-icon {
	margin-bottom: 16px;
}

/* Loading State for Reports */
.report-loading {
	text-align: center;
	padding: 60px 24px;
}

.report-loading .spinner {
	width: 40px;
	height: 40px;
	border-width: 4px;
	margin: 0 auto 20px;
}

.report-loading p {
	color: #888;
	font-size: 14px;
}

/* Export Buttons */
.filter-actions .btn-secondary {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Responsive Report Styles */
@media (max-width: 768px) {
	.report-type-cards {
		grid-template-columns: 1fr;
	}

	.date-range-inputs {
		flex-direction: column;
		align-items: stretch;
	}

	.date-range-inputs span {
		display: none;
	}

	.filter-actions {
		flex-direction: column;
	}

	.filter-actions button {
		width: 100%;
	}

	.chart-container {
		height: 250px;
		padding: 12px;
	}

	.user-info-grid {
		grid-template-columns: 1fr;
	}

	.report-section {
		padding: 16px;
	}

	.report-section .data-table-container {
		overflow-x: auto;
	}
}

/* Animation for Report Generation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.report-section {
	animation: fadeInUp 0.4s ease;
}

.report-section:nth-child(2) {
	animation-delay: 0.1s;
}

.report-section:nth-child(3) {
	animation-delay: 0.2s;
}
