/* CSS Document */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #ecf0f5;
	font-family: 'Sarabun', 'Tahoma', sans-serif;
	font-size: 14px;
}

img { border: 0; }

a { text-decoration: none; color: #666; }
a:hover { color: #bb43cd; }

/* ========== Login Page ========== */
#login-page {
	background-image: url(../images/bg.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#login_form {
	background: rgba(255,255,255,0.95);
	padding: 40px 50px;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
	width: 400px;
	max-width: 90%;
}

#login_form .login-header {
	text-align: center;
	margin-bottom: 30px;
}

#login_form .login-header img {
	max-width: 180px;
	margin-bottom: 15px;
}

#login_form .login-header .subtitle {
	color: #999;
	font-size: 12px;
	margin-bottom: 5px;
}

#login_form .login-header .login-text {
	color: #333;
	font-weight: bold;
	font-size: 16px;
	margin: 0;
}

#login_form .form-group {
	margin-bottom: 20px;
}

#login_form .form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: #555;
}

#login_form .form-control {
	width: 100%;
	height: 45px;
	border-radius: 5px;
	border: 1px solid #ddd;
	padding: 10px 15px;
	font-size: 14px;
}

#login_form .form-control:focus {
	border-color: #bb43cd;
	box-shadow: 0 0 5px rgba(187,67,205,0.3);
	outline: none;
}

#login_form .btn-login {
	background: #bb43cd;
	color: #fff;
	border: none;
	height: 45px;
	font-size: 16px;
	font-weight: bold;
	border-radius: 5px;
	margin-top: 10px;
	cursor: pointer;
}

#login_form .btn-login:hover {
	background: #a33bb5;
}

/* ========== Dashboard Layout ========== */
body.hold-transition {
	background: #ecf0f5 !important;
	background-image: none !important;
	overflow-x: hidden;
}

.wrapper {
	min-height: 100vh;
}

/* Header */
.main-header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 1030 !important;
	background: #fff !important;
	border: none !important;
	margin: 0 !important;
	max-height: none !important;
	min-height: auto !important;
}

.main-header .top-bar {
	background: #000 !important;
	padding: 0 !important;
}

.main-header .top-bar .container-fluid {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center !important;
	padding: 6px 20px !important;
	gap: 20px !important;
}

.main-header .top-bar .welcome-text {
	color: #fff !important;
	font-size: 13px !important;
}

.main-header .top-bar .admin-badge {
	background: linear-gradient(135deg, #bb43cd 0%, #9b2bad 100%);
	color: #fff;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	margin-right: 15px;
}

.main-header .top-bar .admin-badge i {
	margin-right: 5px;
}

.main-header .top-bar .top-menu {
	display: flex !important;
	gap: 5px !important;
}

.main-header .top-bar .top-menu a {
	color: #fff !important;
	padding: 3px 8px !important;
	font-size: 13px !important;
	background: transparent !important;
	transition: all 0.2s !important;
}

.main-header .top-bar .top-menu a:hover {
	text-decoration: underline !important;
}

.main-header .top-bar .top-menu a.logout {
	color: #ff9900 !important;
}

.main-header .top-bar .top-menu a.logout:hover {
	color: #ffcc00 !important;
}

.main-header .header-banner {
	background: url(/assets/images/top-bg.png) repeat-x #d4e5f7 !important;
	padding: 0 !important;
	text-align: left !important;
	line-height: 0 !important;
}

.main-header .header-banner img {
	max-width: 990px !important;
	width: 100% !important;
	height: auto !important;
}

/* Sidebar */
.main-sidebar {
	position: fixed !important;
	top: 200px !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 260px !important;
	background: #fff !important;
	z-index: 1020 !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	padding-top: 0 !important;
	border-right: 1px solid #ddd !important;
}

.main-sidebar .sidebar {
	padding: 0 !important;
}

.sidebar-menu {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
}

.sidebar-menu > li {
	margin: 0 !important;
	border-bottom: 1px solid #eee !important;
}

.sidebar-menu > li > a {
	display: block !important;
	padding: 12px 15px !important;
	color: #fff !important;
	font-size: 14px !important;
	transition: all 0.2s !important;
}

.sidebar-menu > li > a:hover {
	opacity: 0.9 !important;
}

.sidebar-menu > li.treeview > a {
	background: #6b9dc8 !important;
}

.sidebar-menu > li.treeview > a:hover {
	background: #5a8ab5 !important;
}

/* Back to home link */
.sidebar-menu > li:not(.treeview) > a {
	background: #555 !important;
	color: #fff !important;
}

.sidebar-menu > li:not(.treeview) > a:hover {
	background: #444 !important;
}

/* First Level Submenu */
.sidebar-menu .treeview-menu {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #f8f9fa !important;
	display: none;
	overflow: hidden;
	border-left: 3px solid #6b9dc8 !important;
}

.sidebar-menu .treeview-menu > li {
	margin: 0 !important;
	position: relative;
}

.sidebar-menu .treeview-menu > li > a {
	display: block !important;
	padding: 11px 15px 11px 25px !important;
	color: #555 !important;
	font-size: 13px !important;
	border-bottom: 1px solid #eee !important;
	transition: all 0.2s !important;
	background: transparent !important;
}

.sidebar-menu .treeview-menu > li > a:before {
	content: '';
	position: absolute;
	left: 12px;
	top: 50%;
	width: 6px;
	height: 6px;
	background: #ccc;
	border-radius: 50%;
	transform: translateY(-50%);
	transition: all 0.2s;
}

.sidebar-menu .treeview-menu > li > a:hover {
	background: #eef3f7 !important;
	color: #3c003c !important;
	padding-left: 30px !important;
}

.sidebar-menu .treeview-menu > li > a:hover:before {
	background: #6b9dc8;
}

.sidebar-menu .treeview-menu > li.active > a {
	color: #3c003c !important;
	font-weight: 600 !important;
	background: #e8f0f7 !important;
}

.sidebar-menu .treeview-menu > li.active > a:before {
	background: #bb43cd;
}

.sidebar-menu .treeview-menu > li:last-child > a {
	border-bottom: none !important;
}

/* Nested Treeview (Sub-folder) */
.sidebar-menu .treeview-menu > li.treeview > a {
	font-weight: 600 !important;
	color: #444 !important;
	background: #f0f4f8 !important;
	padding-left: 25px !important;
}

.sidebar-menu .treeview-menu > li.treeview > a:before {
	content: '\f07b';
	font-family: FontAwesome;
	position: absolute;
	left: 10px;
	top: 50%;
	width: auto;
	height: auto;
	background: none;
	border-radius: 0;
	transform: translateY(-50%);
	color: #6b9dc8;
	font-size: 12px;
}

.sidebar-menu .treeview-menu > li.treeview > a:hover {
	background: #e5ecf3 !important;
}

.sidebar-menu .treeview-menu > li.treeview > a:hover:before {
	color: #bb43cd;
}

/* Second Level Submenu */
.sidebar-menu .treeview-menu .treeview-menu {
	background: #fff !important;
	border-left: 2px solid #ddd !important;
	margin-left: 15px !important;
}

.sidebar-menu .treeview-menu .treeview-menu > li > a {
	padding-left: 20px !important;
	font-size: 12px !important;
	color: #666 !important;
}

.sidebar-menu .treeview-menu .treeview-menu > li > a:before {
	left: 8px;
	width: 5px;
	height: 5px;
	background: #ddd;
}

.sidebar-menu .treeview-menu .treeview-menu > li > a:hover {
	padding-left: 25px !important;
	color: #bb43cd !important;
}

.sidebar-menu .treeview-menu .treeview-menu > li > a:hover:before {
	background: #bb43cd;
}

/* Third Level Submenu */
.sidebar-menu .treeview-menu .treeview-menu .treeview-menu {
	margin-left: 10px !important;
	border-left-color: #eee !important;
}

.sidebar-menu .treeview-menu .treeview-menu .treeview-menu > li > a {
	padding-left: 18px !important;
	font-size: 12px !important;
}

.sidebar-menu i.fa {
	margin-right: 10px !important;
	width: 18px !important;
	text-align: center !important;
	font-size: 14px !important;
}

.sidebar-menu .pull-right-container {
	float: right !important;
}

.sidebar-menu .pull-right-container .fa-angle-left {
	transition: transform 0.3s ease !important;
}

.sidebar-menu .treeview.menu-open > a .fa-angle-left {
	transform: rotate(-90deg) !important;
}

/* Content Wrapper */
.content-wrapper {
	margin-left: 260px !important;
	margin-top: 200px !important;
	padding: 20px !important;
	min-height: calc(100vh - 200px) !important;
	background: #fff !important;
	transition: margin-left 0.3s !important;
}

.content-wrapper .content {
	background: #fff;
	padding: 20px;
}

/* DataTables */
.dataTables_wrapper {
	padding: 10px 0;
}

table.dataTable {
	width: 100% !important;
	border-collapse: collapse;
	margin: 15px 0 !important;
}

table.dataTable thead th {
	background: #bb43cd;
	color: #fff;
	padding: 14px 12px;
	font-weight: 600;
	border: none;
	text-align: left;
}

table.dataTable tbody td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

table.dataTable tbody tr:hover {
	background: #f9f0fb;
}

table.dataTable tbody tr:nth-child(even) {
	background: #fafafa;
}

table.dataTable tbody tr:nth-child(even):hover {
	background: #f9f0fb;
}

/* Buttons */
.btn-primary {
	background: #bb43cd !important;
	border-color: #bb43cd !important;
}

.btn-primary:hover {
	background: #a33bb5 !important;
	border-color: #a33bb5 !important;
}

/* Box/Card */
.box {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	margin-bottom: 20px;
	border-top: 3px solid #bb43cd;
}

.box-header {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
}

.box-header .title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.box-content {
	padding: 20px;
}

/* Page Title */
.page-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #bb43cd;
}

/* ========== Box/Card Components ========== */
.box {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	margin-bottom: 20px;
	border: none;
	border-top: 3px solid #6b9dc8;
	overflow: hidden;
}

.box.box-default {
	border-top-color: #6b9dc8;
}

.box.box-primary {
	border-top-color: #bb43cd;
}

.box-header {
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
	background: #fafafa;
}

.box-header.with-border {
	border-bottom: 1px solid #e5e5e5;
}

.box-header .box-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0;
	display: inline-block;
}

.box-body {
	padding: 20px;
}

.box-footer {
	padding: 15px 20px;
	background: #f8f8f8;
	border-top: 1px solid #eee;
}

/* ========== Forms ========== */
.form-horizontal .form-group {
	margin-bottom: 20px;
	margin-left: 0;
	margin-right: 0;
}

.form-horizontal .control-label {
	font-weight: 600;
	color: #555;
	padding-top: 8px;
}

.form-control {
	height: 42px;
	border-radius: 6px;
	border: 1px solid #ddd;
	padding: 8px 14px;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: none;
}

.form-control:focus {
	border-color: #6b9dc8;
	box-shadow: 0 0 0 3px rgba(107, 157, 200, 0.15);
	outline: none;
}

textarea.form-control {
	height: auto;
	min-height: 100px;
	resize: vertical;
}

select.form-control {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 8px 10px;
	padding-right: 30px;
}

input[type="file"].form-control {
	padding: 8px;
	height: auto;
}

/* ========== Buttons ========== */
.btn {
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
}

.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, #bb43cd 0%, #9b2bad 100%) !important;
	color: #fff !important;
	border: none !important;
}

.btn-primary:hover {
	background: linear-gradient(135deg, #a33bb5 0%, #8a259a 100%) !important;
}

.btn-info {
	background: linear-gradient(135deg, #6b9dc8 0%, #5a8ab5 100%) !important;
	color: #fff !important;
	border: none !important;
}

.btn-info:hover {
	background: linear-gradient(135deg, #5a8ab5 0%, #4a7aa5 100%) !important;
}

.btn-success {
	background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%) !important;
	color: #fff !important;
	border: none !important;
}

.btn-danger {
	background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%) !important;
	color: #fff !important;
	border: none !important;
}

.btn-default {
	background: #fff !important;
	color: #666 !important;
	border: 1px solid #ddd !important;
}

.btn-default:hover {
	background: #f5f5f5 !important;
}

/* ========== Tables ========== */
.table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0;
}

.table thead th {
	background: linear-gradient(135deg, #6b9dc8 0%, #5a8ab5 100%);
	color: #fff;
	padding: 14px 15px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	text-align: left;
	white-space: nowrap;
}

.table tbody td {
	padding: 14px 15px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
	color: #555;
}

.table tbody tr {
	transition: all 0.2s ease;
}

.table tbody tr:hover {
	background: #f0f7fc;
}

.table tbody tr:nth-child(even) {
	background: #fafbfc;
}

.table tbody tr:nth-child(even):hover {
	background: #f0f7fc;
}

/* Table Links */
.table a {
	color: #6b9dc8;
	font-weight: 500;
}

.table a:hover {
	color: #3c003c;
	text-decoration: underline;
}

/* ========== Action Icons/Buttons ========== */
.action-icons {
	display: flex;
	gap: 8px;
	align-items: center;
}

.action-icons a,
.table td a img {
	opacity: 0.7;
	transition: all 0.2s ease;
}

.action-icons a:hover,
.table td a:hover img {
	opacity: 1;
	transform: scale(1.1);
}

/* ========== Quick Action Bar ========== */
.box-header a,
.box-title + div a,
div[style*="padding:10px"] a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	color: #555;
	font-weight: 500;
	margin-right: 10px;
	transition: all 0.3s ease;
}

.box-header a:hover,
.box-title + div a:hover,
div[style*="padding:10px"] a:hover {
	background: #6b9dc8;
	border-color: #6b9dc8;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(107, 157, 200, 0.3);
}

.box-header a img,
.box-title + div a img,
div[style*="padding:10px"] a img {
	height: 24px;
	width: auto;
}

/* ========== Page Header ========== */
.head1 {
	font-size: 22px;
	font-weight: 700;
	color: #333;
	display: block;
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 3px solid #6b9dc8;
}

/* ========== DataTables Override ========== */
.dataTables_wrapper {
	padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
	margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
	padding: 6px 10px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.dataTables_wrapper .dataTables_filter input {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #ddd;
	margin-left: 8px;
	transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
	border-color: #6b9dc8;
	box-shadow: 0 0 0 3px rgba(107, 157, 200, 0.15);
	outline: none;
}

.dataTables_wrapper .dataTables_info {
	color: #777;
	font-size: 13px;
	padding-top: 15px;
}

.dataTables_wrapper .dataTables_paginate {
	padding-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	padding: 6px 12px;
	margin: 0 3px;
	border-radius: 4px;
	border: 1px solid #ddd;
	background: #fff;
	color: #666 !important;
	transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: #6b9dc8 !important;
	border-color: #6b9dc8 !important;
	color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background: #6b9dc8 !important;
	border-color: #6b9dc8 !important;
	color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ========== Alerts & Messages ========== */
.alert {
	padding: 15px 20px;
	border-radius: 6px;
	margin-bottom: 20px;
	border: none;
}

.alert-success {
	background: #d4edda;
	color: #155724;
}

.alert-danger {
	background: #f8d7da;
	color: #721c24;
}

.alert-warning {
	background: #fff3cd;
	color: #856404;
}

.alert-info {
	background: #d1ecf1;
	color: #0c5460;
}

/* ========== Mail/Document Icons ========== */
.table td img[src*="icon-mail"],
.table td img[src*="icon-edit"],
.table td img[src*="icon-del"] {
	vertical-align: middle;
	margin-right: 5px;
}

/* ========== Smooth Scroll ========== */
html {
	scroll-behavior: smooth;
}

/* ========== Loading Animation ========== */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.box {
	animation: fadeIn 0.3s ease;
}

/* ========== Row Spacing ========== */
.row {
	margin-left: -10px;
	margin-right: -10px;
}

.row > [class*="col-"] {
	padding-left: 10px;
	padding-right: 10px;
}

/* ========== Admin Page ========== */
body.admin-page {
	background: #ecf0f5;
	margin: 0;
	padding: 0;
}

.admin-wrapper {
	min-height: 100vh;
}

.admin-topbar {
	background: #000;
	padding: 0;
}

.admin-topbar .container-fluid {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 20px;
}

.admin-topbar .topbar-left {
	display: flex;
	align-items: center;
}

.admin-topbar .admin-badge {
	background: #bb43cd;
	color: #fff;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}

.admin-topbar .admin-badge i {
	margin-right: 5px;
}

.admin-topbar .topbar-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.admin-topbar .topbar-right .welcome-text {
	color: #fff;
	font-size: 13px;
}

.admin-topbar .topbar-right a {
	color: #fff;
	font-size: 13px;
	transition: all 0.2s;
}

.admin-topbar .topbar-right a:hover {
	text-decoration: underline;
}

.admin-topbar .topbar-right a.logout {
	color: #ff9900;
}

.admin-topbar .topbar-right a i {
	margin-right: 5px;
}

.admin-header {
	background: url(/assets/images/top-bg.png) repeat-x #d4e5f7;
	text-align: left;
	line-height: 0;
}

.admin-header img {
	max-width: 990px;
	width: 100%;
	height: auto;
}

.admin-container {
	padding: 20px;
	background: #fff;
	min-height: calc(100vh - 200px);
}

.admin-content {
	padding: 0;
}

/* Admin Menu */
#main_menu {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	overflow: hidden;
	border-top: 3px solid #bb43cd;
}

#main_menu #open,
#main_menu #close {
	display: none;
}

#main_menu > ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#main_menu > ul > li {
	border-bottom: 1px solid #eee;
}

#main_menu > ul > li:last-child {
	border-bottom: none;
}

#main_menu > ul > li > div {
	background: linear-gradient(135deg, #6b9dc8 0%, #5a8ab5 100%);
	color: #fff;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

#main_menu > ul > li > div:after {
	content: '\f107';
	font-family: FontAwesome;
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

#main_menu > ul > li.open > div:after {
	transform: translateY(-50%) rotate(180deg);
}

#main_menu > ul > li > div:hover {
	background: linear-gradient(135deg, #5a8ab5 0%, #4a7aa5 100%);
}

#main_menu > ul > li > ul {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #f8f9fa;
	display: none;
}

#main_menu > ul > li > ul > li {
	border-bottom: 1px solid #eee;
}

#main_menu > ul > li > ul > li:last-child {
	border-bottom: none;
}

#main_menu > ul > li > ul > li > a {
	display: block;
	padding: 12px 18px 12px 35px;
	color: #555;
	font-size: 14px;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

#main_menu > ul > li > ul > li > a:before {
	content: '\f105';
	font-family: FontAwesome;
	margin-right: 10px;
	color: #999;
}

#main_menu > ul > li > ul > li > a:hover {
	background: #eef3f7;
	color: #3c003c;
	border-left-color: #bb43cd;
}

#main_menu > ul > li > ul > li > a:hover:before {
	color: #bb43cd;
}

/* Responsive */
@media (max-width: 991px) {
	.main-sidebar {
		left: -260px !important;
		transition: left 0.3s !important;
	}

	.main-sidebar.open {
		left: 0 !important;
	}

	.content-wrapper {
		margin-left: 0 !important;
	}

	.main-header .top-bar .container-fluid {
		flex-direction: column;
		gap: 10px;
	}

	.main-header .top-bar .top-menu {
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.main-header .header-banner {
		padding: 8px 10px !important;
	}

	.main-header .header-banner img.logo {
		max-height: 50px !important;
	}

	.content-wrapper {
		padding: 10px !important;
	}

	.content-wrapper .content {
		padding: 15px;
	}

	/* Admin responsive */
	.admin-topbar .container-fluid {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.admin-topbar .topbar-right {
		flex-wrap: wrap;
		justify-content: center;
	}

	.admin-container {
		padding: 15px;
	}

	#main_menu {
		margin-bottom: 20px;
	}
}

/* ========== Calendar Page ========== */
.fc {
	font-family: 'Sarabun', sans-serif;
}

.fc-toolbar-title {
	font-size: 18px !important;
	font-weight: 600;
}

.fc-button-primary {
	background: #6b9dc8 !important;
	border-color: #6b9dc8 !important;
}

.fc-button-primary:hover {
	background: #5a8ab5 !important;
	border-color: #5a8ab5 !important;
}

.fc-day-today {
	background: rgba(107, 157, 200, 0.1) !important;
}

/* ========== Optgroup styling ========== */
select.form-control optgroup {
	font-weight: 600;
	color: #333;
	background: #f5f5f5;
}

select.form-control option {
	padding: 8px;
}

/* ========== File input styling ========== */
input[type="file"] {
	padding: 8px;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

input[type="file"]:hover {
	border-color: #6b9dc8;
	background: #f0f7fc;
}

/* ========== Action Buttons ========== */
.action-cell {
	white-space: nowrap;
}

.btn-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	background: #f5f5f5;
	color: #666;
	margin: 0 2px;
	transition: all 0.2s ease;
}

.btn-action:hover {
	background: #6b9dc8;
	color: #fff;
	transform: scale(1.1);
}

.btn-action.btn-delete:hover {
	background: #d9534f;
	color: #fff;
}

.btn-action i {
	font-size: 14px;
}

/* ========== Box Tools ========== */
.box-header .box-tools {
	float: right;
	margin-top: -3px;
}

.box-header .box-tools .btn {
	margin-left: 5px;
}

/* ========== Labels ========== */
.label {
	display: inline-block;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 3px;
}

.label-default {
	background: #e0e0e0;
	color: #555;
}

.label-primary {
	background: #bb43cd;
	color: #fff;
}

.label-info {
	background: #6b9dc8;
	color: #fff;
}

.label-success {
	background: #5cb85c;
	color: #fff;
}

.label-warning {
	background: #f0ad4e;
	color: #fff;
}

.label-danger {
	background: #d9534f;
	color: #fff;
}

/* ========== Form Inline ========== */
.form-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
}

.form-inline .form-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
}

.form-inline .form-group label {
	margin-bottom: 0;
	font-weight: 600;
}

.form-inline .form-control {
	width: auto;
}

/* ========== Help Block ========== */
.help-block {
	display: block;
	margin-top: 8px;
	color: #999;
	font-size: 12px;
}

/* ========== Form Control Static ========== */
.form-control-static {
	padding-top: 8px;
	padding-bottom: 8px;
	margin-bottom: 0;
	min-height: 36px;
}

/* ========== HR Divider ========== */
hr {
	border: 0;
	border-top: 1px solid #eee;
	margin: 20px 0;
}

/* ========== Utility Classes ========== */
.text-primary { color: #bb43cd !important; }
.text-info { color: #6b9dc8 !important; }
.text-success { color: #5cb85c !important; }
.text-danger { color: #d9534f !important; }
.text-warning { color: #f0ad4e !important; }
.text-muted { color: #999 !important; }

.bg-primary { background: #bb43cd !important; }
.bg-info { background: #6b9dc8 !important; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

/* ========== Print Styles ========== */
@media print {
	.main-header,
	.main-sidebar,
	.admin-topbar {
		display: none !important;
	}

	.content-wrapper {
		margin: 0 !important;
		padding: 0 !important;
	}

	.box {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}
