/* =============================================================
   admin-shell.css  —  Shared shell styles for all admin pages
   Extracted from ~19 page templates to eliminate duplication.
   ============================================================= */

:root {
	--primary-color: #001e57;
	--accent-color: #0683C9;
	--danger-color: #e74c3c;
	--warning-color: #f39c12;
	--success-color: #27ae60;
	--light-bg: #ecf0f1;
	--dark-text: #2c3e50;
	--border-color: #bdc3c7;
}

/* ---- Page header banner ---- */
.page-header {
	background: linear-gradient(135deg, #001e57 0%, #0a2d6e 55%, #0683C9 140%);
	color: white;
	padding: 30px 40px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.page-header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 50%, rgba(6,131,201,0.18), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

.page-header h3 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 15px;
	color: white;
	position: relative;
	z-index: 1;
}

.page-header h3 i {
	font-size: 32px;
	color: #4FB3E8;
}

/* ---- Count / info badge in header ---- */
.user-count-badge {
	background: rgba(6, 131, 201, 0.22);
	color: #9FD4F2;
	border: 1px solid rgba(6, 131, 201, 0.45);
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 1;
}

/* ---- Table wrapper card ---- */
.admins-table-wrapper {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin-bottom: 30px;
}

/* ---- Data table ---- */
.admins-table {
	width: 100%;
	border-collapse: collapse;
}

.admins-table thead {
	background: var(--primary-color);
	color: white;
}

.admins-table thead th {
	padding: 18px 20px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 3px solid var(--accent-color);
}

.admins-table tbody tr {
	border-bottom: 1px solid #ecf0f1;
	transition: all 0.3s ease;
}

.admins-table tbody tr:hover {
	background: #f8f9fa;
	transform: translateX(2px);
}

.admins-table tbody td {
	padding: 18px 20px;
	vertical-align: middle;
	color: var(--dark-text);
}

/* ---- User info cell ---- */
.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.user-avatar {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent-color), #2980b9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

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

.user-name {
	font-weight: 600;
	color: var(--dark-text);
	font-size: 15px;
}

.user-username {
	font-size: 13px;
	color: #7f8c8d;
	margin-top: 2px;
}

.user-email {
	color: #7f8c8d;
	font-size: 14px;
}

.user-email i {
	color: var(--accent-color);
	margin-right: 6px;
}

/* ---- Toggle switch ---- */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

input:checked + .slider {
	background-color: var(--success-color);
}

input:checked + .slider:before {
	transform: translateX(24px);
}

/* ---- Action buttons ---- */
.action-buttons {
	display: flex;
	gap: 8px;
	align-items: center;
}

.action-btn {
	padding: 8px 14px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: white;
}

.action-btn i {
	font-size: 12px;
}

.btn-reset {
	background: var(--warning-color);
}

.btn-reset:hover {
	background: #e67e22;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
	color: white;
}

.btn-edit {
	background: var(--accent-color);
}

.btn-edit:hover {
	background: #2980b9;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
	color: white;
}

.btn-delete {
	background: var(--danger-color);
}

.btn-delete:hover {
	background: #c0392b;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
	color: white;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
	.admins-table {
		font-size: 14px;
	}

	.action-buttons {
		flex-direction: column;
		gap: 6px;
	}

	.action-btn {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.page-header {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.admins-table-wrapper {
		overflow-x: auto;
	}

	.admins-table {
		min-width: 900px;
	}
}

/* ===== Form sections ===== */
.form-section {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

.form-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #0683C9 0%, #0568a0 100%);
}

.form-section h3 {
	color: #2c3e50;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 24px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(6, 131, 201, 0.2);
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-section h3 i {
	color: #0683C9;
	font-size: 20px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.form-field {
	display: flex;
	flex-direction: column;
}

.form-field.full-width {
	grid-column: 1 / -1;
}

.form-field label {
	color: #001e57;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.req {
	color: #e74c3c;
	font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea,
.form-field select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e6ed;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #2c3e50;
	background: #ffffff;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field select:focus {
	outline: none;
	border-color: #0683C9;
	box-shadow: 0 0 0 4px rgba(6, 131, 201, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.form-field input:hover,
.form-field select:hover {
	border-color: #bdc3c7;
}

.form-field input.invalid,
.form-field select.invalid {
	border-color: #e74c3c;
	background: #ffe5e5;
}

.form-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #ffffff url('data:image/svg+xml;utf8,<svg fill="%23495057" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center;
	background-size: 20px;
	cursor: pointer;
	padding-right: 40px;
}

.submit-btn {
	background: linear-gradient(135deg, #0683C9 0%, #0568a0 100%);
	color: white;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(6, 131, 201, 0.3);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.submit-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(6, 131, 201, 0.4);
}

.submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

.submit-btn:disabled {
	background: #95a5a6;
	cursor: not-allowed;
	box-shadow: none;
	opacity: 0.6;
}

@media (max-width: 768px) {
	.form-grid {
		grid-template-columns: 1fr;
	}

	.form-section {
		padding: 20px;
	}
}
