/* ==========================================================================
   TAM Chauffeurs — Corporate Booking Portal
   Modern visual refresh (blue & slate palette)
   NOTE: Visual/styling only. No selectors were renamed or removed that are
   referenced by PHP (names/ids) or JavaScript (getElementById / jQuery
   selectors), so all existing markup keeps working unchanged.
   ========================================================================== */

:root {
	--color-primary: #2457c5;
	--color-primary-dark: #173b91;
	--color-primary-light: #eaf0fd;
	--color-slate-900: #0f172a;
	--color-slate-800: #1b2740;
	--color-slate-700: #334059;
	--color-slate-600: #4b5875;
	--color-slate-400: #8794ab;
	--color-slate-200: #e2e7f1;
	--color-slate-100: #f3f5f9;
	--color-white: #ffffff;
	--color-border: #dde3ee;
	--color-success: #1a9c5b;
	--color-success-bg: #e7f7ef;
	--color-danger: #d64545;
	--color-danger-bg: #fdeaea;
	--color-warning: #b9770e;
	--color-warning-bg: #fdf3e2;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
}

/* ---------- Base ---------- */
html {
	box-sizing: border-box;
}
*, *:before, *:after {
	box-sizing: inherit;
}
body, a, p, h1, h2, h3, h4, h5, h6, .btn, button, span, input, select, textarea {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}
html {
	height: 100%;
}
body {
	font-size: 14px;
	font-weight: normal;
	color: var(--color-slate-700);
	background: var(--color-slate-100);
	-webkit-font-smoothing: antialiased;
	min-height: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
/* Sticky footer: header + footer keep their natural size, whichever
   direct child holds the page content stretches to fill the rest. */
body > .shade {
	flex: 0 0 auto;
}
body > .container,
body > div[class*="main-content"] {
	flex: 1 0 auto;
	width: 100%;
}
img {
	max-width: 100%;
}
a {
	color: var(--color-primary);
}
a:hover, a:focus {
	color: var(--color-primary-dark);
	text-decoration: none;
}

.inner {
	border-right: 1px solid var(--color-border);
	padding: 4px 0px 2px;
}

.h2, h2 {
	font-size: 26px;
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--color-slate-900);
	margin: 0 0 6px;
	text-transform: none;
}
.h3, h3 {
	font-size: 17px;
	font-weight: 700;
	padding-bottom: 0px;
	color: var(--color-primary-dark);
	margin: 28px 0 14px;
}
.section-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 12px;
	border-left: 4px solid var(--color-primary);
}
.count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
	font-size: 12px;
	font-weight: 700;
}
h4 {
	color: var(--color-slate-900);
	font-weight: 700;
}

/* ---------- Layout shell ---------- */
.shade {
	background: var(--color-slate-900);
	z-index: 10;
	position: relative;
}
.main-content {
	padding-top: 32px;
	padding-bottom: 48px;
	margin: 0px 0;
	clear: both;
}
.container {
	max-width: 1140px;
}
@media (min-width: 768px) {
	.pl0 { padding-left: 0 !important; }
}

/* ---------- Header / navigation ---------- */
.shade > .row {
	max-width: 1180px;
	margin: 0 auto;
	padding: 6px 16px;
}
.shade img {
	max-width: 170px;
	padding: 6px 0;
}
.navbar {
	background: transparent;
	border: 0;
	min-height: auto;
	margin-bottom: 0;
	margin-top: 5px;
}
.navbar-toggle {
	border-color: rgba(255, 255, 255, 0.25);
	margin-top: 10px;
}
.navbar-toggle .icon-bar {
	background: #fff;
}
.navbar-toggle:hover, .navbar-toggle:focus {
	background: rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
	.navbar-nav {
		float: none;
		text-align: right;
	}
	.navbar-nav > li {
		float: none;
		display: inline-block;
	}
}
.nav > li > a {
	padding: 12px 20px;
	font-weight: 600;
	margin-right: 2px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: rgba(255, 255, 255, 0.82);
	border-radius: var(--radius-sm);
	transition: background 0.15s ease, color 0.15s ease;
}
.nav > li > a:hover, .nav > li > a:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}
.navbar-collapse {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
	.navbar-collapse {
		border-top: 0;
	}
}

/* ---------- Buttons ---------- */
.btn {
	border-radius: var(--radius-md) !important;
	background: var(--color-primary);
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
	padding: 10px 18px;
	cursor: pointer;
	border: 1px solid var(--color-primary);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
	box-shadow: var(--shadow-sm);
}
.btn:hover {
	color: #fff !important;
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
}
.btn:active {
	transform: translateY(1px);
}
.btn-default {
	color: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	background: #fff;
}
.btn-default:hover, .btn-default:active {
	color: #fff !important;
	background: var(--color-primary) !important;
}
.btn-dft { background: var(--color-slate-400); border-color: var(--color-slate-400); color: #fff; }
.btn-lcs { background: #8a6b52; border-color: #8a6b52; color: #fff; }
.btn-feed { background: var(--color-slate-700); border-color: var(--color-slate-700); color: #fff; }
.btn-dft:hover, .btn-feed:hover, .btn-lcs:hover { color: #fff; opacity: 0.9; }
.di .btn-danger { border-color: var(--color-danger) !important; color: var(--color-danger) !important; }
button { border-radius: var(--radius-sm) !important; }

input[type=submit] {
	cursor: pointer;
	background: var(--color-primary);
	border: 0;
	display: inline-block;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.4px;
	padding: 12px 34px;
	margin: 20px 0;
	border-radius: var(--radius-md);
	font-size: 15px;
	box-shadow: var(--shadow-sm);
	transition: background 0.15s ease;
}
input[type=submit]:hover {
	background: var(--color-primary-dark);
}

/* ---------- Cards (new wrapper elements added around existing forms) ---------- */
.tam-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 30px 30px 18px;
	margin: 0 auto 24px;
}
.tam-card--narrow { max-width: 620px; }
.tam-card--table { padding: 26px 20px 22px; }
.tam-card__eyebrow {
	text-transform: uppercase;
	letter-spacing: 1.2px;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-primary);
	text-align: center;
	margin-bottom: 4px;
}
.tam-page-title {
	text-align: center;
	margin-bottom: 26px;
}
.tam-page-title h1, .tam-page-title h2 {
	margin-bottom: 6px;
}
.tam-page-title p {
	color: var(--color-slate-600);
	font-size: 14px;
	margin: 0;
}

.form-section {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 18px 18px 4px;
	margin-bottom: 20px;
	background: var(--color-slate-100);
}
.form-section__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--color-slate-700);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.form-section__title i {
	color: var(--color-primary);
}

/* Dashboard (home.php) */
.dashboard-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	max-width: 980px;
	margin: 0 auto;
}
.dashboard-card {
	flex: 1 1 260px;
	max-width: 300px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 30px 22px;
	text-align: center;
	display: block;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dashboard-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-primary);
	text-decoration: none;
}
.dashboard-card i {
	font-size: 30px;
	color: var(--color-primary);
	margin-bottom: 14px;
	display: inline-block;
}
.dashboard-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-slate-900);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.dashboard-card__desc {
	font-size: 13px;
	color: var(--color-slate-600);
	margin-top: 6px;
}

/* ---------- Forms ---------- */
.form-control {
	height: auto;
	padding: 10px 12px;
	font-size: 14px;
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--color-border) !important;
	background: #fff;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 3px var(--color-primary-light) !important;
	outline: none;
}
.form-control[readonly] {
	background: var(--color-slate-100);
	color: var(--color-slate-600);
}
.form-group {
	margin-bottom: 16px;
}
label {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 12px;
	color: var(--color-slate-600);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
input[type=text], select {
	padding: 10px 12px;
	margin: 0px 1px 3px 0px;
	display: inline-block;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

.icon-geolocation {
	position: absolute;
	top: 34px;
    right: 28px;
	font-size: 14px;
	color: var(--color-slate-400);
	cursor: pointer;
}
.icon-geolocation:hover {
	color: var(--color-primary);
}

.register_form {
	background: #fff;
	padding: 10px 15px;
	border-radius: var(--radius-md);
}

/* Table row action buttons (listing.php) */
.actions-cell {
	white-space: nowrap;
}
.action-group {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 6px;
	align-items: center;
}
.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 30px;
	height: 30px;
	padding: 0;
	flex: 0 0 auto;
	border-radius: 8px;
	background: var(--color-primary-light);
	color: var(--color-primary-dark) !important;
	font-size: 13px;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.action-btn:hover, .action-btn:focus {
	background: var(--color-primary);
	color: #fff !important;
	text-decoration: none;
}
.action-btn:active {
	transform: translateY(1px);
}
.action-btn span {
	/* icon-only in the table; label stays for screen readers / title tooltip */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.action-btn--danger {
	background: var(--color-danger-bg);
	color: var(--color-danger) !important;
}
.action-btn--danger:hover, .action-btn--danger:focus {
	background: var(--color-danger);
	color: #fff !important;
}

.status-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.status-pill--cancelled {
	background: var(--color-warning-bg);
	color: var(--color-warning);
}

/* Radio */
.radio input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}
label.radio .checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 15px;
	width: 15px;
	background-color: transparent;
	border-radius: 50%;
	border: 1px solid var(--color-slate-400);
}
.spawn .checkmark { top: 3px !important; }
.radio input:checked ~ .checkmark {
	background-color: transparent;
	border-color: var(--color-primary);
}
label.radio .checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.radio input:checked ~ .checkmark:after {
	display: block;
}
.radio .checkmark:after {
	top: 3px;
	left: 3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-primary);
}

/* Checkbox */
label.check {
	display: block;
	position: relative;
	padding: 0 0 0 30px;
	margin-bottom: 2px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	width: auto;
	height: auto;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	line-height: 22px;
	color: var(--color-slate-700);
	margin: 10px 0;
}
.check input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
label.check .checkmark {
	position: absolute;
	top: 3px;
	left: 0;
	height: 18px;
	width: 18px;
	background-color: #fff;
	border: 2px solid var(--color-slate-400);
	border-radius: 4px;
	margin-left: 0;
}
.check:hover input ~ .checkmark {
	border-color: var(--color-primary);
}
.check input:checked ~ .checkmark {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}
label.check .checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.check input:checked ~ .checkmark:after {
	display: block;
}
.check .checkmark:after {
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

/* ---------- Tables (listing.php) ---------- */
.table-wrap {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	margin-bottom: 8px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}
table {
	border: 0;
	border-collapse: collapse;
	background: #fff;
	width: 100%;
}
.table-wrap table {
	margin-bottom: 0;
}
table th, table td {
	text-align: left;
	padding: 11px 16px;
	border: 0;
	border-bottom: 1px solid var(--color-border);
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.4;
	vertical-align: middle;
}
table th {
	background: linear-gradient(135deg, var(--color-slate-900), var(--color-slate-800));
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-size: 11px;
	white-space: nowrap;
	padding-top: 12px;
	padding-bottom: 12px;
}
table thead tr:first-child th:first-child {
	border-top-left-radius: var(--radius-md);
}
table thead tr:first-child th:last-child {
	border-top-right-radius: var(--radius-md);
}
table td {
	color: var(--color-slate-700);
}
table tbody tr:nth-child(even) td {
	background: var(--color-slate-100);
}
table tbody tr:last-child td {
	border-bottom: 0;
}
table tbody tr:hover td {
	background: var(--color-primary-light);
}
table td a {
	font-weight: 600;
}
.job-ref {
	display: inline-block;
	background: var(--color-slate-100);
	color: var(--color-slate-800);
	font-weight: 700;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: 0.2px;
}
table tbody tr:nth-child(even) .job-ref {
	background: #fff;
}
.table-empty {
	padding: 32px 16px;
	text-align: center;
	color: var(--color-slate-400);
	font-size: 13px;
}
.table-empty i {
	display: block;
	font-size: 22px;
	margin-bottom: 8px;
	color: var(--color-slate-200);
}

/* ---------- Misc content blocks ---------- */
.details {
	width: 100%;
	float: left;
	display: block;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	margin-bottom: 10px;
	background: #fff;
}
.details:first-of-type { margin-top: 10px; }
.details p:first-of-type { float: left; width: 25%; font-weight: 600; color: var(--color-slate-600); }
.details p:last-of-type { float: right; width: 70%; text-align: right; }
.details p { margin: 0; padding: 0; }

.ref {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary);
}

.pt-6 { padding-top: 4%; }
.bblock a {
	display: block;
	max-width: 320px;
	margin: 21px auto;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding-top: 13px;
	padding-bottom: 13px;
}

.v-hidden { visibility: hidden; }
.checkbox, .radio { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 16px;
	text-align: center;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	letter-spacing: 0.2px;
}

/* ---------- Alerts ---------- */
.alert {
	border-radius: var(--radius-md);
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 13px;
}
.alert-error {
	background: var(--color-danger-bg);
	color: var(--color-danger);
	border: 1px solid rgba(214, 69, 69, 0.25);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991px) {
	.tam-card { padding: 24px 18px 12px; }
}
@media (max-width: 767px) {
	.shade img { max-width: 140px; }
	.main-content { padding-top: 20px; }
	table th, table td { font-size: 12px; padding: 9px 6px; }
	.dashboard-card { flex: 1 1 100%; max-width: 100%; }
	.details p:first-of-type, .details p:last-of-type { float: none; width: 100%; text-align: left; }
}
