/* ============================================
   MODERN UI CUSTOMIZATION
   CBT Application - dr. Zulfadli, Sp.OG, Subsp. F.E.R
   ============================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Base & Typography --- */
body, .wrapper, .content-wrapper, .main-sidebar, .sidebar-menu li a {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: #edf4fb;
}

body.login-page {
	position: relative;
	background: linear-gradient(135deg, #fffef8 0%, #fff6cf 28%, #d8e5d8 50%, #f3dda0 72%, #fffef8 100%);
	background-size: 300% 300%;
	animation: ambientShift 14s ease-in-out infinite;
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 100vh;
}

@keyframes ambientShift {
	0% { background-position: 0% 0%; }
	50% { background-position: 100% 100%; }
	100% { background-position: 0% 0%; }
}

.content {
	padding: 24px 22px 30px !important;
}

.content .box,
.content .table,
.content .info-box {
	border-radius: 16px !important;
}

.btn {
	border-radius: 10px !important;
	font-weight: 600 !important;
	transition: all 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-success {
	background: linear-gradient(135deg, #22a06b, #1f8a5d) !important;
	border-color: #1f8a5d !important;
}

.btn-success:hover {
	background: linear-gradient(135deg, #1f8a5d, #1c784f) !important;
}

.btn-primary {
	background: linear-gradient(135deg, #4098d9, #2d79b8) !important;
	border-color: #2d79b8 !important;
}

.btn-danger {
	background: linear-gradient(135deg, #e75a5a, #d23d3d) !important;
	border-color: #d23d3d !important;
}

.table > thead > tr > th {
	background: #edf5ff;
	color: #2f455c;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 1px solid #dfeaf5 !important;
}

.table > tbody > tr:hover {
	background: #f7fbff;
}

.alert-warning,
.callout-warning {
	background: #fff9eb !important;
	border-color: #f4d89c !important;
	color: #8a6000 !important;
}

.box.box-primary .box-header,
.box.box-success .box-header,
.box.box-warning .box-header,
.box.box-danger .box-header {
	border-top-left-radius: 16px !important;
	border-top-right-radius: 16px !important;
}

/* --- Scrollbar --- */
.scroll-y {
	height: 500px !important;
	max-height: 500px;
	overflow-y: auto;
}
.scroll-x {
	overflow-x: auto;
}

/* --- Textarea --- */
textarea {
	vertical-align: top;
	transition: height 0.2s ease;
}

/* --- Float Alert --- */
.floatalert {
	position: fixed;
	top: 65px;
	left: 50%;
	transform: translateX(-50%);
	width: 360px;
	z-index: 9999;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* --- Content Wrapper --- */
.content-wrapper {
	background: linear-gradient(180deg, #edf5ff 0%, #dfeff8 18%, #d6eaf8 100%) !important;
}
.skin-blue .content-wrapper {
	background: linear-gradient(180deg, #edf5ff 0%, #dfeff8 18%, #d6eaf8 100%) !important;
}
.content-wrapper .container {
	width: 95% !important;
}

/* --- Main Header (Admin) --- */
.skin-blue .main-header .navbar {
	background: linear-gradient(135deg, #0f4f7d 0%, #1773a8 45%, #1aa3c9 100%) !important;
	box-shadow: 0 8px 24px rgba(8, 52, 80, 0.18);
}
.skin-blue .main-header .logo {
	background: linear-gradient(135deg, #0d3f63 0%, #145c8d 100%) !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px;
}
.skin-blue .main-header .logo:hover {
	background: linear-gradient(135deg, #145c8d 0%, #1d7db2 100%) !important;
}

/* --- Sidebar --- */
.skin-blue .main-sidebar, 
.skin-blue .left-side {
	background: linear-gradient(180deg, #0d3d5d 0%, #124f78 32%, #1d6a92 100%) !important;
}
.skin-blue .sidebar-menu > li > a {
	border-radius: 10px;
	margin: 4px 10px;
	padding: 10px 14px;
	transition: all 0.25s ease;
	color: rgba(216,232,243,0.9) !important;
	font-size: 13.5px;
	font-weight: 500;
}
.skin-blue .sidebar-menu > li > a:hover {
	background: rgba(255,255,255,0.08) !important;
	color: #ffffff !important;
	transform: translateX(3px);
}
.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li > a:active {
	background: linear-gradient(135deg, #1a87c2 0%, #48b7d9 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 10px 18px rgba(32, 142, 200, 0.26);
	border-left: none !important;
}
.skin-blue .sidebar-menu > li > a > .fa {
	width: 22px;
	text-align: center;
	font-size: 15px;
}
.sidebar-menu > li.header {
	color: #636b7d !important;
	background: transparent !important;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	padding: 12px 20px 6px;
}
.sidebar-menu > li.header#end-sidebar {
	font-size: 9px;
	letter-spacing: 0.3px;
	line-height: 1.6;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	text-transform: none;
	padding: 10px 10px;
}
.skin-blue .sidebar a {
	color: #b0b8c8 !important;
}
.skin-blue .sidebar a:hover {
	color: #fff !important;
}
.user-panel {
	border-bottom: 1px solid rgba(255,255,255,0.08) !important;
	padding: 16px !important;
}
.user-panel > .info {
	width: calc(100% - 50px);
	white-space: normal !important;
}
.user-panel > .info > p {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.35;
	white-space: normal !important;
	overflow-wrap: anywhere;
	margin-bottom: 6px;
}

/* --- Cards / Boxes --- */
.box {
	border-radius: 16px !important;
	border: none !important;
	box-shadow: 0 10px 25px rgba(15, 64, 96, 0.08), 0 2px 8px rgba(15,64,96,0.04) !important;
	overflow: visible !important;
	transition: all 0.3s ease;
}
.box:hover {
	box-shadow: 0 14px 30px rgba(15, 64, 96, 0.12), 0 5px 12px rgba(15,64,96,0.05) !important;
	transform: translateY(-1px);
}
.box-solid {
	border: none !important;
}
.box-solid .box-header {
	background: #f8f9fc !important;
	border-bottom: 1px solid #e8ecf1;
	padding: 14px 18px !important;
}
.box-solid .box-header .box-title {
	font-weight: 600 !important;
	font-size: 14px;
	color: #2d3748;
}
.box .box-header {
	border-bottom: 1px solid #f0f2f5;
	padding: 14px 18px;
}
.box .box-header .box-title {
	font-weight: 600;
	font-size: 14px;
	color: #2d3748;
}
.box-header.with-border {
	border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
.box .box-body {
	padding: 18px;
}
.box .box-footer {
	background: #f8f9fc;
	border-top: 1px solid #e8ecf1;
	padding: 12px 18px;
}
.box.box-solid > .box-header .btn-primary:hover {
	background: #357ca5 !important;
}
.box.box-solid > .box-header .btn-info:hover {
	background: #00a7d0 !important;
}
.box.box-solid > .box-header .btn-default:hover {
	background: #b5bbc8 !important;
}

/* Colored box headers — gradient */
.box.box-primary .box-header {
	background: linear-gradient(135deg, #1b7ec3, #136da0) !important;
}
.box.box-success .box-header,
.box.box-success.box-solid .box-header {
	background: linear-gradient(135deg, #2fa8a1, #1d8b9c) !important;
	border-bottom: none !important;
}
.box.box-success.box-solid .box-header .box-title {
	color: #fff !important;
}
.box.box-danger .box-header,
.box.box-danger.box-solid .box-header {
	background: linear-gradient(135deg, #f26a6a, #d15464) !important;
	border-bottom: none !important;
}
.box.box-danger.box-solid .box-header .box-title {
	color: #fff !important;
}
.box.box-warning .box-header,
.box.box-warning.box-solid .box-header {
	background: linear-gradient(135deg, #f3b25d, #e18d35) !important;
	border-bottom: none !important;
}
.box.box-warning.box-solid .box-header .box-title {
	color: #fff !important;
}

/* --- Info Boxes (Dashboard stats) --- */
.info-box {
	border-radius: 16px !important;
	box-shadow: 0 10px 25px rgba(15, 64, 96, 0.08), 0 2px 8px rgba(15,64,96,0.04) !important;
	min-height: 85px;
	transition: all 0.3s ease;
	border: none !important;
	overflow: hidden;
}
.info-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(15, 64, 96, 0.1), 0 5px 12px rgba(15,64,96,0.05) !important;
}
.info-box-icon {
	border-radius: 12px 0 0 12px !important;
	width: 75px;
	line-height: 85px;
	font-size: 28px;
}
.info-box-icon.bg-yellow {
	background: linear-gradient(135deg, #f1c40f, #f39c12) !important;
}
.info-box-icon.bg-aqua {
	background: linear-gradient(135deg, #00d2ff, #3a7bd5) !important;
}
.info-box-icon.bg-green {
	background: linear-gradient(135deg, #56ab2f, #a8e063) !important;
}
.info-box-icon.bg-red {
	background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}
.info-box-icon.bg-purple {
	background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
}
.info-box-content {
	padding: 12px 14px;
}
.info-box-text {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
	color: #7c8798;
}
.info-box-number {
	font-size: 24px;
	font-weight: 700;
	color: #2d3748;
}

/* --- Buttons --- */
.btn {
	border-radius: 8px !important;
	font-weight: 500;
	letter-spacing: 0.3px;
	transition: all 0.25s ease;
	border: none !important;
	font-size: 13px;
	padding: 8px 18px;
}
.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn:active {
	transform: translateY(0);
}
.btn-primary {
	background: linear-gradient(135deg, #3498db, #2980b9) !important;
}
.btn-primary:hover {
	background: linear-gradient(135deg, #2980b9, #2471a3) !important;
}
.btn-success {
	background: linear-gradient(135deg, #27ae60, #219a52) !important;
}
.btn-success:hover {
	background: linear-gradient(135deg, #219a52, #1e8449) !important;
}
.btn-danger {
	background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}
.btn-danger:hover {
	background: linear-gradient(135deg, #c0392b, #a93226) !important;
}
.btn-warning {
	background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}
.btn-info {
	background: linear-gradient(135deg, #00b4d8, #0077b6) !important;
}
.btn-flat {
	border-radius: 8px !important;
}

/* --- Form Controls --- */
.form-control {
	border-radius: 8px !important;
	border: 1.5px solid #dde2e8 !important;
	padding: 8px 14px;
	font-size: 13.5px;
	transition: all 0.25s ease;
	box-shadow: none !important;
	height: auto;
	min-height: 38px;
}
.form-control:focus {
	border-color: #3498db !important;
	box-shadow: 0 0 0 3px rgba(52,152,219,0.15) !important;
}
select.form-control {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

/* --- Tables --- */
.table > thead > tr > th {
	background: #f8f9fc;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #5a6678;
	border-bottom: 2px solid #e8ecf1 !important;
	padding: 8px 8px;
	white-space: nowrap;
}
.table > tbody > tr > td {
	padding: 7px 8px;
	vertical-align: middle;
	border-bottom: 1px solid #f0f2f5;
	font-size: 12.5px;
	color: #3d4a5c;
}
/* Compact table variant */
.table-compact > thead > tr > th {
	padding: 6px 6px;
	font-size: 10.5px;
	letter-spacing: 0.4px;
}
.table-compact > tbody > tr > td {
	padding: 5px 6px;
	font-size: 12px;
}
.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.box-body {
	overflow: hidden;
}
.table > tbody > tr:hover > td {
	background: #f4f6fa;
}
.table-striped > tbody > tr:nth-of-type(odd) {
	background: #fafbfd;
}
.table-striped > tbody > tr:nth-of-type(odd):hover {
	background: #f0f3f8;
}

/* --- Labels / Badges --- */
.label {
	border-radius: 6px !important;
	padding: 4px 10px;
	font-weight: 500;
	font-size: 11.5px;
	letter-spacing: 0.3px;
}

/* --- Progress Bars --- */
.progress {
	border-radius: 10px !important;
	height: 12px;
	background: #e8ecf1;
	overflow: hidden;
	box-shadow: none;
}
.progress-bar {
	border-radius: 10px !important;
	line-height: 12px;
	font-size: 10px;
}

/* --- Dropdown --- */
.dropdown-menu {
	border-radius: 10px !important;
	border: none !important;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
	padding: 8px;
	margin-top: 8px;
	z-index: 10000 !important;
}
.open {
	position: relative;
	z-index: 10000 !important;
}
.btn-group.open, .dropdown.open {
	z-index: 10000 !important;
}
.dropdown-menu > li > a {
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	transition: all 0.2s ease;
}
.dropdown-menu > li > a:hover {
	background: #f0f2f5;
}
.user-header {
	border-radius: 10px 10px 0 0 !important;
}

/* --- Login Page (Student) --- */
.login-page {
	position: relative;
	background: linear-gradient(135deg, #fffef8 0%, #fff6cf 28%, #d8e5d8 50%, #f3dda0 72%, #fffef8 100%) !important;
	background-size: 300% 300%;
	animation: ambientShift 14s ease-in-out infinite;
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 100vh;
}
.login-page::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
						  linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 42px 42px;
	opacity: 0.22;
	pointer-events: none;
}
.login-page::after {
	content: '';
	position: fixed;
	left: -8%;
	top: 58%;
	width: 116%;
	height: 46%;
	background: linear-gradient(180deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0) 100%);
	transform: skewY(-6deg);
	pointer-events: none;
}
@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	25% { background-position: 50% 100%; }
	50% { background-position: 100% 50%; }
	75% { background-position: 50% 0%; }
	100% { background-position: 0% 50%; }
}
.login-page .main-header {
	background: linear-gradient(135deg, #1a3a5c 0%, #2574a9 100%) !important;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	height: auto;
	padding: 12px 0;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	position: relative;
	z-index: 10;
}
.login-page .main-header .img-logo {
	margin: 8px 20px;
	width: 180px;
}
.login-page .main-header .panel-user {
	background: rgba(120,175,225,0.45);
	height: auto;
	padding: 12px 16px;
	border-radius: 10px;
	margin: 16px 16px;
	font-size: 13px;
	color: #fff;
	margin-bottom: 40px;
	margin-top: 20px;
}
.login-page .main-header .panel-user img {
	width: 42px;
	border-radius: 50%;
}
.login-page .login-box {
	margin-top: 160px !important;
	position: relative;
	z-index: 5;
}
.login-box {
	width: 420px;
	margin: 30px auto;
}
.login-box .box {
	border-radius: 16px !important;
	box-shadow: 0 8px 40px rgba(0,0,0,0.2) !important;
}
.login-box .box .box-header {
	background: linear-gradient(135deg, #5a90b5, #70a8cc) !important;
	padding: 18px 22px !important;
}
.login-box .box .box-header .box-title {
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
}
.login-box .box .box-body {
	padding: 24px;
}
.login-box .btn-success {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
}

/* --- Login Page (Admin) --- */
.login-box-body {
	border-radius: 16px !important;
	padding: 30px !important;
	box-shadow: 0 8px 40px rgba(0,0,0,0.2) !important;
}
.login-logo a {
	color: #fff !important;
	font-size: 26px;
	text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- DataTables --- */
.dataTables_wrapper .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
	margin: 0 2px;
	border: none !important;
	padding: 6px 14px;
	transition: all 0.2s ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background: linear-gradient(135deg, #3498db, #2980b9) !important;
	color: #fff !important;
	border: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: #e8ecf1 !important;
	border: none !important;
	color: #333 !important;
}
.dataTables_wrapper .dataTables_filter input {
	border-radius: 8px !important;
	border: 1.5px solid #dde2e8;
	padding: 6px 12px;
}
.dataTables_wrapper .dataTables_length select {
	border-radius: 8px !important;
	border: 1.5px solid #dde2e8;
	padding: 4px 8px;
}

/* --- Content padding-top for student pages --- */
.content-wrapper {
	padding-top: 85px !important;
}

/* Admin pages: proper spacing below fixed header */
.sidebar-mini .content-wrapper {
	padding-top: 60px !important;
}

/* --- Direct Chat (Log box) --- */
.direct-chat .box-body {
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}
#log-list {
	height: 533px;
	overflow-y: auto;
}
#log-list::-webkit-scrollbar {
	width: 5px;
}
#log-list::-webkit-scrollbar-track {
	background: transparent;
}
#log-list::-webkit-scrollbar-thumb {
	background: #cbd5e0;
	border-radius: 10px;
}

/* --- General Scrollbar Styling --- */
::-webkit-scrollbar {
	width: 7px;
	height: 7px;
}
::-webkit-scrollbar-track {
	background: #f0f2f5;
}
::-webkit-scrollbar-thumb {
	background: #c1c9d6;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background: #a0aec0;
}

/* --- Animations --- */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.info-box, .box {
	animation: fadeInUp 0.4s ease-out;
}
.content > .row {
	animation: fadeInUp 0.5s ease-out;
}

/* --- Student Page Header --- */
.student-header {
	height: auto !important;
	background: linear-gradient(135deg, #3d6a8a 0%, #5a90b5 100%) !important;
}
.student-header .navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	padding: 0;
	margin: 0;
	background: transparent !important;
	border: none !important;
}
.student-header .navbar-header {
	float: none;
	display: flex;
	align-items: center;
}
.student-header .navbar-right {
	float: none;
	display: flex;
	align-items: center;
}
.student-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.12);
	padding: 8px 16px;
	border-radius: 10px;
	color: #fff;
}
.student-user-info img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
.student-user-text {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}
.student-name {
	font-weight: 600;
	font-size: 13px;
	color: #fff;
}
.student-logout {
	font-size: 12px;
	color: rgba(255,255,255,0.7) !important;
	text-decoration: none;
}
.student-logout:hover {
	color: #fff !important;
}

/* Student content area */
.student-content {
	padding-top: 20px !important;
	min-height: calc(100vh - 56px);
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
	.login-box {
		width: 92%;
		margin: 20px auto;
	}
	.info-box-number {
		font-size: 20px;
	}
	.student-user-info {
		padding: 6px 10px;
	}
	.student-name {
		font-size: 12px;
	}
	.modern-login-card {
		margin: 20px 16px !important;
		width: min(92vw, 620px) !important;
		max-width: 620px !important;
	}
	.modern-login-header {
		padding: 30px 24px 24px !important;
	}
	.modern-login-body {
		padding: 24px 20px !important;
	}
	.modern-form-row {
		display: block;
	}
	.modern-field-label {
		display: inline-flex;
		width: auto;
		min-width: 0;
		margin-bottom: 8px;
	}
}

/* ===========================================
   MODERN LOGIN FORM
   =========================================== */
.modern-login-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 30px);
	padding: 10px 20px 8px;
	position: relative;
	z-index: 2;
}

.modern-login-card {
	width: min(90vw, 600px);
	max-width: 600px;
	background: linear-gradient(180deg, rgba(14, 35, 46, 0.78) 0%, rgba(10, 26, 34, 0.72) 100%);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 30px;
	box-shadow: 0 30px 90px rgba(4, 18, 30, 0.38), 0 18px 34px rgba(9, 68, 89, 0.18), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(255,255,255,0.04);
	overflow: hidden;
	animation: loginFadeIn 0.6s ease-out;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	transform: translateY(0);
}

@keyframes loginFadeIn {
	from { opacity: 0; transform: translateY(28px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softGlow {
	0%, 100% { box-shadow: 0 0 0 rgba(94, 170, 220, 0); }
	50% { box-shadow: 0 0 20px rgba(94, 170, 220, 0.12); }
}

.modern-login-header {
	background: linear-gradient(130deg, #0b2d42 0%, #134f73 38%, #0c7d6d 100%);
	padding: 26px 28px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba(255,255,255,0.12);
	animation: softGlow 4s ease-in-out infinite;
}

.modern-login-header::before {
	content: '';
	position: absolute;
	top: -55%;
	right: -26%;
	width: 240px;
	height: 240px;
	background: rgba(255,177,124,0.28);
	border-radius: 50%;
}

.modern-login-header::after {
	content: '';
	position: absolute;
	bottom: -55%;
	left: -16%;
	width: 270px;
	height: 270px;
	background: rgba(255,255,255,0.12);
	border-radius: 50%;
}

.modern-login-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(145deg, #e8f7ff 0%, #d4f5df 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	backdrop-filter: blur(10px);
	border: 3px solid rgba(255,255,255,0.9);
	box-shadow: 0 8px 24px rgba(0,0,0,0.22);
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-login-icon i {
	font-size: 24px;
	color: #0b6b63;
}

@keyframes iconPulse {
	0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.22); transform: scale(1); }
	50% { box-shadow: 0 10px 30px rgba(46, 168, 185, 0.28); transform: scale(1.02); }
}
.modern-login-icon {
	animation: iconPulse 3.2s ease-in-out infinite;
}
.modern-login-icon:hover {
	transform: scale(1.04);
}

.modern-login-title {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
	letter-spacing: 0.3px;
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.modern-login-subtitle {
	color: rgba(232,241,250,0.86);
	font-size: 12px;
	margin: 0;
	font-weight: 500;
	letter-spacing: 0.2px;
	position: relative;
	z-index: 1;
}

.modern-login-body {
	padding: 18px 24px 16px;
	background: linear-gradient(180deg, rgba(13, 30, 38, 0.20) 0%, rgba(8, 16, 24, 0.08) 100%);
}

.modern-form-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.modern-field-label {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-width: 118px;
	width: 118px;
	margin: 0;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(217, 233, 246, 0.86);
	white-space: nowrap;
}

.modern-field-label i {
	color: #b7f0d8;
	font-size: 11px;
}

.modern-input-group {
	display: flex;
	align-items: center;
	flex: 1;
	height: 44px;
	background: rgba(255,255,255,0.12);
	border: 1.6px solid rgba(255,255,255,0.42);
	border-radius: 16px;
	transition: all 0.28s ease;
	overflow: hidden;
	backdrop-filter: blur(8px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 8px 18px rgba(9, 17, 26, 0.08);
	transform: translateY(0);
}

.modern-input-group:hover {
	transform: translateY(-1px);
	border-color: rgba(255,255,255,0.72);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 10px 22px rgba(9, 17, 26, 0.12);
}

.modern-input-group:focus-within {
	border-color: rgba(255,255,255,0.92);
	background: rgba(255,255,255,0.18);
	box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 14px 24px rgba(9, 17, 26, 0.12), inset 0 1px 0 rgba(255,255,255,0.3);
}

.modern-input-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	background: linear-gradient(135deg, rgba(115,236,208,0.18), rgba(133,196,255,0.14));
	color: rgba(220, 233, 244, 0.9);
	font-size: 14px;
	border-right: 1px solid rgba(255,255,255,0.18);
	transition: color 0.3s ease, transform 0.25s ease, background 0.3s ease;
}

.modern-input-group:focus-within .modern-input-icon {
	color: #dff9ff;
	transform: scale(1.05);
	background: linear-gradient(135deg, rgba(115,236,208,0.26), rgba(133,196,255,0.18));
}

.modern-input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	padding: 10px 14px 10px 0 !important;
	font-size: 13px !important;
	color: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: 'Inter', sans-serif;
	height: auto !important;
	min-height: unset !important;
	text-shadow: 0 1px 1px rgba(0,0,0,0.18);
	letter-spacing: 0.12px;
}

.modern-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.85) 50%), linear-gradient(135deg, rgba(255,255,255,0.85) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 34px !important;
	cursor: pointer;
}

.modern-select option {
	background: #ffffff;
	color: #1d2d3c;
}

.modern-readonly-group {
	background: rgba(175, 232, 255, 0.12);
	border-color: rgba(175, 232, 255, 0.42);
}

.modern-readonly-input {
	color: #ebfcff !important;
	font-weight: 600;
	letter-spacing: 0.22px;
	cursor: default;
}

.modern-readonly-input::placeholder {
	color: rgba(255,255,255,0.7);
}

.modern-student-table {
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.modern-student-table thead th {
	background: linear-gradient(135deg, #0f172a, #1e293b);
	color: #f8fafc;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	vertical-align: middle;
}

.modern-student-table tbody td {
	vertical-align: middle;
	font-size: 12px;
	padding: 10px 8px;
	background: rgba(255,255,255,0.72);
}

.modern-student-table tbody tr:nth-child(even) td {
	background: rgba(248, 250, 252, 0.9);
}

.modern-activation-btn,
.modern-edit-btn,
.modern-delete-btn {
	padding: 6px 10px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em;
	border-radius: 10px !important;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.modern-activation-btn {
	background: linear-gradient(135deg, #22c55e, #16a34a) !important;
	border-color: #16a34a !important;
	color: #fff !important;
}

.modern-edit-btn {
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
	border-color: #cbd5e1 !important;
	color: #0f172a !important;
}

.modern-delete-btn {
	background: linear-gradient(135deg, #ef4444, #dc2626) !important;
	border-color: #dc2626 !important;
	color: #fff !important;
}

.modern-choice-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1;
	padding: 0 8px;
}

.modern-choice-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 72px;
	height: 44px;
	background: rgba(255,255,255,0.08);
	border: 1.4px solid rgba(255,255,255,0.34);
	border-radius: 12px;
	transition: all 0.25s ease;
}

.modern-choice-box:hover {
	border-color: rgba(255,255,255,0.7);
	background: rgba(255,255,255,0.12);
}

.modern-choice-box label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #ffffff !important;
	cursor: pointer;
	text-transform: uppercase;
}

.modern-choice-box input {
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: #dff9ff;
	transform: translateY(-1px);
}

.modern-input::placeholder {
	color: rgba(206, 220, 234, 0.72);
	font-weight: 400;
	letter-spacing: 0.08px;
}

.modern-input:-webkit-autofill,
.modern-input:-webkit-autofill:hover,
.modern-input:-webkit-autofill:focus,
.modern-input:-webkit-autofill:active {
	-webkit-text-fill-color: #ffffff !important;
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

.modern-login-info {
	min-height: 10px;
	margin-bottom: 8px;
}

.modern-login-info .alert {
	border-radius: 10px;
	font-size: 13px;
	padding: 10px 14px;
	margin-bottom: 0;
}

.modern-login-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	margin-top: 4px;
	background: linear-gradient(120deg, #dd7b34 0%, #f09a46 46%, #ffc173 100%);
	color: #fff;
	border: none;
	border-radius: 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.1px;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: 'Inter', sans-serif;
	position: relative;
	overflow: hidden;
	box-shadow: 0 16px 30px rgba(204,103,32,0.32), 0 8px 16px rgba(18, 56, 72, 0.15);
}

.modern-login-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
	transform: skewX(-22deg);
	transition: left 0.5s ease;
}

.modern-login-btn:hover {
	background: linear-gradient(120deg, #c86421 0%, #e58733 46%, #f7aa58 100%);
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 18px 36px rgba(204,103,32,0.42), 0 10px 20px rgba(18, 56, 72, 0.18), 0 0 18px rgba(255,175,112,0.25);
}

.modern-login-btn:focus,
.modern-input:focus,
.modern-input-group:focus-within {
	outline: none;
}

.modern-login-btn:hover::before {
	left: 125%;
}

.modern-login-btn:active {
	transform: translateY(0) scale(0.995);
	box-shadow: 0 5px 12px rgba(204,103,32,0.3);
}

.modern-login-link-wrap {
	margin-top: 18px;
	text-align: center;
}

.modern-login-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	color: rgba(228, 239, 249, 0.9);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15px;
	text-decoration: none;
	transition: all 0.25s ease;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.14);
}

.modern-login-link:hover {
	color: #ffffff;
	background: rgba(255,255,255,0.08);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(24, 72, 92, 0.18);
}

.modern-login-footer {
	text-align: center;
	padding: 15px 32px 22px;
	border-top: 1px solid #dbe7f2;
	background: rgba(242,248,253,0.95);
}

.modern-login-logo {
	height: 34px;
	width: auto;
	opacity: 0.72;
	transition: opacity 0.3s ease;
}

.modern-login-logo:hover {
	opacity: 1;
}

.modern-login-page-footer {
	text-align: center;
	color: rgba(223,236,248,0.75);
	font-size: 11px;
	padding: 12px 14px;
	position: relative;
	left: 0;
	right: 0;
	bottom: auto;
	letter-spacing: 0.25px;
	z-index: 3;
	margin-top: 14px;
}

/* Modern Admin Login */
.modern-admin-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
}

.modern-admin-card {
	width: 100%;
	max-width: 420px;
	background: linear-gradient(160deg, #ebf5fb 0%, #d6eaf8 30%, #aed6f1 60%, #d4e6f1 100%);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(93,173,226,0.2);
	overflow: hidden;
	animation: loginFadeIn 0.6s ease-out;
}

.modern-admin-header {
	background: linear-gradient(135deg, #1a5276 0%, #2e86c1 40%, #5dade2 70%, #85c1e9 100%);
	padding: 36px 32px 28px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.modern-admin-header::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -30%;
	width: 180px;
	height: 180px;
	background: rgba(255,255,255,0.06);
	border-radius: 50%;
}

.modern-admin-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #fff, #d6eaf8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	backdrop-filter: blur(10px);
	border: 3px solid rgba(255,255,255,0.8);
	box-shadow: 0 4px 15px rgba(46,134,193,0.35);
	position: relative;
	z-index: 1;
}

.modern-admin-icon i {
	font-size: 24px;
	color: #2e86c1;
}

.modern-admin-title {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.modern-admin-subtitle {
	color: rgba(255,255,255,0.8);
	font-size: 12px;
	margin: 0;
	font-weight: 400;
	position: relative;
	z-index: 1;
}

.modern-admin-body {
	padding: 28px 28px 20px;
}

.modern-admin-footer {
	text-align: center;
	padding: 12px 28px 20px;
	border-top: 1px solid #d6eaf8;
}

.modern-admin-footer span {
	font-size: 11px;
	color: #a0aec0;
}

.modern-admin-btn {
	width: 100%;
	padding: 13px 24px;
	background: linear-gradient(135deg, #2574a9 0%, #2e86c1 50%, #5dade2 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 4px 15px rgba(46,134,193,0.3);
}

.modern-admin-btn:hover {
	background: linear-gradient(135deg, #1a5276 0%, #2574a9 50%, #2e86c1 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(46,134,193,0.45);
}

.modern-admin-btn:active {
	transform: translateY(0);
}

/* ============================================
   E-ARSIP STYLE ADMIN LOGIN
   ============================================ */
.earsip-login-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
}

.earsip-login-card {
	width: 100%;
	max-width: 440px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.1);
	overflow: hidden;
	animation: loginFadeIn 0.6s ease-out;
}

.earsip-login-header {
	text-align: center;
	padding: 40px 32px 20px;
}

.earsip-login-icon {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #2574a9 0%, #5dade2 100%);
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	box-shadow: 0 8px 24px rgba(37,116,169,0.3);
}

.earsip-login-icon i {
	font-size: 30px;
	color: #ffffff;
}

.earsip-login-title {
	color: #2574a9;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 6px;
	letter-spacing: 0.5px;
}

.earsip-login-desc {
	color: #718096;
	font-size: 13px;
	margin: 0;
	font-weight: 400;
	line-height: 1.5;
}

.earsip-login-body {
	padding: 10px 36px 24px;
}

.earsip-login-heading {
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: #2d3748;
	margin: 0 0 24px;
}

.earsip-form-group {
	margin-bottom: 18px;
}

.earsip-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 6px;
}

.earsip-input-wrap {
	position: relative;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #f7fafc;
	transition: all 0.3s ease;
	overflow: hidden;
}

.earsip-input-wrap:focus-within {
	border-color: #5dade2;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(93,173,226,0.15);
}

.earsip-input {
	width: 100%;
	border: none !important;
	background: transparent !important;
	padding: 12px 16px !important;
	font-size: 14px !important;
	color: #2d3748 !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: 'Inter', sans-serif;
	height: auto !important;
	min-height: unset !important;
}

.earsip-input::placeholder {
	color: #a0aec0;
	font-weight: 400;
}

.earsip-input-password {
	display: flex;
	align-items: center;
}

.earsip-input-password .earsip-input {
	flex: 1;
	padding-right: 8px !important;
}

.earsip-toggle-pw {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	cursor: pointer;
	color: #a0aec0;
	font-size: 16px;
	transition: color 0.2s ease;
	user-select: none;
}

.earsip-toggle-pw:hover {
	color: #2574a9;
}

.earsip-login-btn {
	width: 100%;
	padding: 14px 24px;
	background: linear-gradient(135deg, #2574a9 0%, #2e86c1 50%, #5dade2 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 4px 15px rgba(46,134,193,0.35);
	margin-top: 6px;
}

.earsip-login-btn:hover {
	background: linear-gradient(135deg, #1a5276 0%, #2574a9 50%, #2e86c1 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(46,134,193,0.45);
}

.earsip-login-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(46,134,193,0.3);
}

.earsip-login-footer {
	padding: 0 36px 28px;
	text-align: center;
}

.earsip-divider {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 8px 0 16px;
}

.earsip-copyright {
	color: #a0aec0;
	font-size: 12px;
	margin: 0;
	line-height: 1.6;
}