/* Admin panel */
.admin-body {
	margin: 0;
	font-family: Poppins, sans-serif;
	background: #f4f6fa;
	color: #011e40;
	min-height: 100vh;
}

.admin-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 260px;
	background: #0f1934;
	color: #fff;
	display: flex;
	flex-direction: column;
	padding: 24px 0;
	z-index: 10;
}

.admin-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 24px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	text-align: center;
}

.admin-brand img {
	height: 88px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.admin-brand span {
	font-weight: 600;
	font-size: 14px;
	color: #fc5508;
}

.admin-nav {
	flex: 1;
	padding: 20px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.admin-nav a {
	color: #c9d0de;
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
	background: rgba(252, 85, 8, 0.15);
	color: #fc5508;
}

.admin-logout {
	padding: 12px 20px 0;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-logout button {
	width: 100%;
	background: transparent;
	border: 0;
	color: #c9d0de;
	padding: 12px 0;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
}

.admin-logout button:hover {
	color: #fc5508;
}

.admin-main {
	margin-left: 260px;
	padding: 32px;
	min-height: 100vh;
}

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

.admin-header {
	margin-bottom: 28px;
}

.admin-header h1 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 700;
}

.admin-header p {
	margin: 0;
	color: #5a6a85;
}

.admin-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.admin-stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 22px;
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 10px rgba(1, 30, 64, 0.06);
	transition: transform 0.2s ease;
}

.admin-stat-card:hover {
	transform: translateY(-2px);
}

.admin-stat-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: rgba(252, 85, 8, 0.12);
	color: #fc5508;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.admin-stat-card strong {
	display: block;
	font-size: 28px;
	line-height: 1.1;
}

.admin-stat-card span {
	color: #5a6a85;
	font-size: 13px;
}

.admin-panel {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 10px rgba(1, 30, 64, 0.06);
}

.admin-panel h2 {
	margin: 0 0 18px;
	font-size: 18px;
}

.admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.admin-btn {
	display: inline-block;
	background: #fc5508;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}

.admin-btn:hover {
	background: #e14a04;
	color: #fff;
	text-decoration: none;
}

.admin-btn-outline {
	background: transparent;
	color: #011e40;
	border: 1px solid #d5dbe8;
}

.admin-btn-outline:hover {
	border-color: #fc5508;
	color: #fc5508;
	background: transparent;
}

.admin-btn-danger {
	background: #fff;
	color: #c0392b;
	border: 1px solid #f0c2bc;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
}

.admin-btn-danger:hover {
	background: #c0392b;
	color: #fff;
	border-color: #c0392b;
}

.admin-field {
	margin-bottom: 16px;
}

.admin-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.admin-help {
	margin: -6px 0 16px;
	color: #5a6a85;
	font-size: 13px;
}

.admin-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="password"],
.admin-field input[type="url"],
.admin-field input[type="file"] {
	width: 100%;
	max-width: 640px;
	border: 1px solid #d5dbe8;
	border-radius: 6px;
	padding: 11px 14px;
	font-size: 14px;
	font-family: inherit;
}

.admin-field small {
	display: block;
	margin-top: 6px;
	color: #5a6a85;
	font-size: 12px;
}

.admin-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin-bottom: 18px;
}

.admin-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

.admin-alert-success {
	background: #e8f8ef;
	border-left: 3px solid #12bc00;
}

.admin-alert-error {
	background: #fff1ee;
	border-left: 3px solid #fc5508;
}

.admin-empty {
	color: #5a6a85;
	margin: 0;
}

.admin-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.admin-gallery-item {
	border: 1px solid #e6ebf3;
	border-radius: 10px;
	overflow: hidden;
	background: #fafbfd;
}

.admin-gallery-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: #0f1934;
}

.admin-gallery-thumb img,
.admin-gallery-thumb video {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	background: #0f1934;
	pointer-events: none;
}

.admin-gallery-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(252, 85, 8, 0.92);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.admin-gallery-thumb:hover .admin-gallery-play {
	transform: translate(-50%, -50%) scale(1.08);
}

.admin-gallery-meta {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.admin-gallery-meta strong {
	font-size: 13px;
	word-break: break-word;
}

/* Gallery modal */
body.admin-modal-open {
	overflow: hidden;
}

.admin-modal[hidden] {
	display: none !important;
}

.admin-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.admin-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 30, 64, 0.78);
}

.admin-modal-dialog {
	position: relative;
	z-index: 1;
	width: fit-content;
	max-width: min(920px, 100%);
	background: #fff;
	border-radius: 14px;
	padding: 20px 20px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.admin-modal-close {
	position: absolute;
	right: 12px;
	top: 8px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #5a6a85;
}

.admin-modal-close:hover {
	color: #fc5508;
}

.admin-modal-title {
	margin: 0 36px 14px 0;
	font-size: 18px;
}

.admin-modal-body {
	background: #0f1934;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.admin-modal-body img,
.admin-modal-body video {
	width: auto;
	height: auto;
	max-width: min(860px, 88vw);
	max-height: 75vh;
	display: block;
	object-fit: contain;
	background: #000;
}

.admin-login-brand img {
	height: 200px;
}

/* Login page */
.admin-login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		linear-gradient(135deg, rgba(15, 25, 52, 0.72), rgba(1, 30, 64, 0.78)),
		url('../img/admin-login-bg.png') center/cover no-repeat;
}

.admin-login-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 14px;
	padding: 36px 32px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.admin-login-brand {
	text-align: center;
	margin-bottom: 28px;
}

.admin-login-brand img {
	height: 200px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin-bottom: 16px;
}

.admin-login-brand h1 {
	margin: 0 0 8px;
	font-size: 24px;
}

.admin-login-brand p {
	margin: 0;
	color: #5a6a85;
	font-size: 14px;
}

.admin-login-card .admin-field input {
	max-width: none;
}

.admin-login-card .admin-btn {
	width: 100%;
}

.admin-back-link {
	display: inline-block;
	margin-top: 18px;
	color: #5a6a85;
	font-size: 13px;
	text-decoration: none;
}

.admin-back-link:hover {
	color: #fc5508;
}

@media (max-width: 900px) {
	.admin-sidebar {
		position: relative;
		width: 100%;
		height: auto;
	}

	.admin-main {
		margin-left: 0;
		padding: 20px;
	}

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