/*
 * custom.css
 * -----------------------------------------------------------------------
 * Additions on top of the purchased template's style.css / responsive.css.
 * We do NOT edit style.css/responsive.css directly so the original template
 * files stay untouched and easy to diff against future template updates.
 * -----------------------------------------------------------------------
 */

/* ---- Text logo (no image logo yet) ------------------------------------ */
/*
 * Two header variants share this markup (see layouts/main.php):
 *  - Homepage: header-style-three, transparent/absolute over the hero photo
 *    - logo needs to be WHITE, same as the template's own logo-3.png would
 *      be for that variant.
 *  - Every other page: the plain solid light-gradient header - logo needs
 *    to be the DARK brand colour (this is the default/fallback below).
 * header-style-three also turns solid below 1140px (template's own
 * responsive.css) or inside .sticky-header once you scroll - both dark
 * backgrounds, so the white override a few rules down still reads fine.
 */
.logo-outer .logo-text{
	display:inline-block;
	font-size:24px;
	font-weight:700;
	color:#0e2a4e;
	line-height:1;
	padding:18px 0;
	text-decoration:none;
}
.header-style-three .logo-outer .logo-text{
	color:#ffffff;
}
.logo-outer .logo-text span{
	color:#c8a294; /* template's existing accent colour */
}
.nav-logo .logo-text{
	display:inline-block;
	font-size:20px;
	font-weight:700;
	color:#ffffff;
	padding:20px 0;
}
/*
 * Sticky header has a solid white background once you scroll - needs dark
 * text. It also needs its own vertical-centering: .logo (float:left) and
 * .pull-right/nav (float:right) are floats, not flex children, so they
 * never auto-align to each other's height - the nav's <a> gets 76px tall
 * from its own padding+line-height (23px+30px+23px, see style.css), while
 * the plain text logo had no matching height, so it sat flush at the top
 * of its own shorter box instead of centered against the nav - hence the
 * logo appearing to "float up" once the sticky bar shows. Giving .logo a
 * matching fixed height and flexing its content centers it against that.
 */
.sticky-header .logo{
	height:76px;
	display:flex;
	align-items:center;
	padding:0 !important;
}
.sticky-header .logo-text{
	font-size:19px;
	color:#0e2a4e;
	line-height:1;
	padding:0;
}

/* The template never put plain text (only a linked list) in .top-right, so
   it has no colour rule of its own - without this it would inherit the
   default dark body text colour and disappear against the dark header. */
.main-header .header-top .top-right .text{
	position:relative;
	display:block;
	font-size:14px;
	line-height:27px;
	padding:11px 0;
	color:#d4c0cd;
}
@media only screen and (max-width:767px){
	/* Below this the template already stacks top-left/top-right full-width
	   and centered (see responsive.css) - drop the tagline entirely here so
	   the phone number isn't competing with a second line on small phones. */
	.main-header .header-top .top-right .text{ display:none; }
}

/*
 * The template only switches to the hamburger menu at 767px and below
 * (responsive.css), trusting that the full desktop nav always fits above
 * that. Our nav item labels are longer than the original demo's ("Register
 * as Caregiver" etc. was already shortened, but even the current set is
 * tight), so on tablet widths (768-1140px) the floated logo/nav/button row
 * could still wrap the way it did before the header-style-three switch.
 * Moving the hamburger breakpoint up to 1140px - where header-style-three
 * itself already stops being the wide transparent desktop bar - guarantees
 * the full nav is never squeezed into less room than it needs.
 */
@media only screen and (max-width:1140px){
	.main-header .nav-outer .main-menu{ display:none !important; }
	.main-header .nav-outer .mobile-nav-toggler{ display:block; }
}

/*
 * Pure-CSS star rating input (reviews/create.php) - 5 radio buttons in
 * reverse DOM order (5,4,3,2,1) displayed left-to-right via row-reverse, so
 * the ~ general-sibling selector (which only ever matches LATER siblings)
 * can highlight "this star and everything before it" on hover/checked. No
 * JS needed - forms.js's existing native required/checkValidity() handling
 * already treats a same-name radio group correctly.
 */
.star-rating{
	display:flex;
	flex-direction:row-reverse;
	justify-content:flex-end;
	width:fit-content;
}
.star-rating input{
	position:absolute;
	opacity:0;
	width:1px;
	height:1px;
}
.star-rating label{
	font-size:38px;
	line-height:1;
	color:#dddddd;
	cursor:pointer;
	padding:0 4px;
	transition:color 150ms ease;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label{
	color:#f0ad4e;
}
.star-rating input:focus-visible + label{
	outline:2px solid #0e2a4e;
	outline-offset:2px;
}

/* ---- Public caregiver directory / profile pages ------------------------ */
.caregiver-filter-form{
	display:flex;
	flex-wrap:wrap;
	align-items:flex-end;
	gap:20px;
	background:#f7f7f7;
	padding:25px;
	border-radius:6px;
	margin-bottom:40px;
}
.caregiver-filter-form .form-group{
	flex:1 1 200px;
	margin-bottom:0;
}
.caregiver-filter-form label{
	display:block;
	font-size:13px;
	font-weight:600;
	color:#0e2a4e;
	margin-bottom:8px;
}
.caregiver-filter-form select{
	display:block;
	width:100%;
	height:50px; /* matches .default-form's input height for a consistent tap target */
	padding:10px 15px;
	border:1px solid #dedede;
	background:#ffffff;
	font-size:15px;
}
.caregiver-filter-actions{
	flex:0 0 auto;
	display:flex;
	align-items:center;
	gap:15px;
}
.caregiver-filter-clear{
	font-size:14px;
	color:#777777;
	text-decoration:underline;
	white-space:nowrap;
}
@media only screen and (max-width:767px){
	.caregiver-filter-form{ flex-direction:column; align-items:stretch; gap:15px; }
	.caregiver-filter-actions{ flex-direction:column; align-items:stretch; }
	.caregiver-filter-actions .theme-btn{ text-align:center; }
	.caregiver-filter-clear{ text-align:center; }
}

.caregiver-grid{
	display:flex;
	flex-wrap:wrap;
	gap:30px;
}
.caregiver-card{
	flex:1 1 280px;
	max-width:340px;
	background:#ffffff;
	border:1px solid #eeeeee;
	border-radius:6px;
	padding:30px;
	text-align:center;
	box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
.caregiver-card .caregiver-card-photo{
	width:88px;
	height:88px;
	border-radius:50%;
	object-fit:cover;
	background:#e9edf3;
	margin:0 auto 15px;
	display:block;
}
.caregiver-card h3{
	color:#0e2a4e;
	margin:10px 0 5px;
	font-size:20px;
}
.caregiver-card .caregiver-meta{
	color:#777777;
	font-size:14px;
	margin-bottom:10px;
}
.caregiver-card .caregiver-rating{
	color:#f0ad4e;
	font-size:18px;
	margin-bottom:15px;
}
.caregiver-card .caregiver-rating .review-count{
	color:#777777;
	font-size:13px;
	margin-left:4px;
}

/* ---- Profile page header (photo + name/meta + stat row) - "professional"
   layout requested for the public caregiver profile. ---- */
.profile-header-card{
	display:flex;
	flex-wrap:wrap;
	gap:30px;
	align-items:center;
	margin-bottom:40px;
	padding-bottom:35px;
	border-bottom:1px solid #eeeeee;
}
.profile-photo{
	width:150px;
	height:150px;
	border-radius:50%;
	object-fit:cover;
	background:#e9edf3;
	box-shadow:0 4px 14px rgba(0,0,0,0.1);
	flex-shrink:0;
}
.profile-header-info{ flex:1 1 320px; }
.profile-header-info h2{
	color:#0e2a4e;
	margin-bottom:6px;
	font-size:28px;
}
.profile-stat-row{
	display:flex;
	flex-wrap:wrap;
	gap:30px;
	margin-top:20px;
}
.profile-stat-value{
	font-size:22px;
	font-weight:700;
	color:#0e2a4e;
	line-height:1.2;
}
.profile-stat-label{
	font-size:13px;
	color:#888888;
}
@media only screen and (max-width:575px){
	.profile-header-card{ flex-direction:column; text-align:center; }
	.profile-stat-row{ justify-content:center; gap:35px; }
}

.review-card{
	border-bottom:1px solid #eeeeee;
	padding:20px 0;
}
.review-card:last-child{ border-bottom:none; }
.review-card .review-rating{ color:#f0ad4e; font-size:16px; margin-bottom:8px; }
.review-card .review-meta{ color:#999999; font-size:13px; margin-top:8px; }

/* ---- Form field types the original template never styled -------------- */
.default-form input[type="tel"],
.default-form input[type="number"],
.default-form input[type="date"]{
	display:block;
	width:100%;
	line-height:28px;
	height:50px;
	font-size:15px;
	padding:10px 20px;
	background:#ffffff;
	color:#222222;
	border:1px solid #dedede;
	transition:all 500ms ease;
}
.default-form input[type="tel"]:focus,
.default-form input[type="number"]:focus,
.default-form input[type="date"]:focus{
	border-color:#c8a294;
	outline:none;
}

/* File inputs (photo/NIC/address proof uploads) - browser default styling
   left mostly alone (native file pickers are already big touch targets on
   mobile), just boxed to match the rest of the form visually. */
.default-form input[type="file"]{
	display:block;
	width:100%;
	font-size:14px;
	padding:12px 15px;
	background:#ffffff;
	border:1px solid #dedede;
	border-radius:2px;
}
.default-form input[type="file"]:focus{
	border-color:#c8a294;
	outline:none;
}

/* Visible field labels (template only used placeholders, our forms are
   long enough that placeholder-only fields are confusing on mobile once
   a value is typed in). */
.default-form label{
	display:block;
	font-size:14px;
	font-weight:600;
	color:#0e2a4e;
	margin-bottom:8px;
}
.default-form label .required{
	color:#e34e4e;
}
.default-form .form-hint{
	font-size:13px;
	color:#777777;
	margin-top:6px;
}

/* Inline validation error message shown under a field by forms.js */
.default-form .field-error{
	display:none;
	color:#e34e4e;
	font-size:13px;
	margin-top:6px;
}
.default-form .form-group.has-error input,
.default-form .form-group.has-error select,
.default-form .form-group.has-error textarea{
	border-color:#e34e4e;
}
.default-form .form-group.has-error .field-error{
	display:block;
}

/* Success / server error banners shown after AJAX submit */
.form-alert{
	display:none;
	padding:18px 22px;
	border-radius:4px;
	margin-bottom:25px;
	font-size:15px;
	line-height:1.6;
}
.form-alert.success{
	background:#e7f6ec;
	border:1px solid #b8e2c4;
	color:#1f7a3d;
}
.form-alert.error{
	background:#fdecec;
	border:1px solid #f3b8b8;
	color:#a12a2a;
}
.form-alert.visible{
	display:block;
}

/* Large tap-friendly submit buttons on mobile */
@media only screen and (max-width:767px){
	.default-form button[type="submit"]{
		width:100%;
		text-align:center;
	}
	.default-form input,
	.default-form select,
	.default-form textarea{
		font-size:16px; /* prevents iOS auto-zoom on focus */
	}
}

/* ---- Types of Care / How It Works / Contact pages ---------------------
   Deliberately built from plain flexbox rather than reusing the template's
   single-purpose section classes (.fluid-section-one etc, meant to appear
   once per page with a specific image/pattern) which weren't designed to
   repeat 4x in a row - this keeps the same colour palette/fonts (inherited
   from style.css) without fighting assumptions baked into those classes. */
.simple-page-section{ padding:70px 0; }
.simple-page-section .sec-title{ margin-bottom:50px; }

.care-type-block{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:40px;
	margin-bottom:60px;
}
.care-type-block:last-child{ margin-bottom:0; }
.care-type-block .care-type-image{ flex:1 1 320px; }
.care-type-block .care-type-image img{ width:100%; border-radius:4px; display:block; }
.care-type-block .care-type-content{ flex:2 1 380px; }
.care-type-block .care-type-content h3{ color:#0e2a4e; margin-bottom:15px; font-size:26px; font-weight:700; }
.care-type-block .care-type-content ul{ margin:20px 0; padding-left:20px; }
.care-type-block .care-type-content ul li{ margin-bottom:8px; }
.care-type-block.reverse{ flex-direction:row-reverse; }

.step-block{ text-align:center; padding:20px; }
.step-block .icon-box{ font-size:40px; color:#c8a294; margin-bottom:20px; }
.step-block h3{ color:#0e2a4e; margin-bottom:12px; font-size:19px; font-weight:700; }

.contact-info-grid{ display:flex; flex-wrap:wrap; gap:30px; margin:40px 0; }
.contact-info-grid .contact-info-card{ flex:1 1 240px; background:#f7f7f7; padding:35px 25px; border-radius:4px; text-align:center; }
.contact-info-grid .contact-info-card .icon{ font-size:30px; color:#c8a294; margin-bottom:15px; display:block; }
.contact-info-grid .contact-info-card h3{ color:#0e2a4e; font-size:17px; margin-bottom:10px; }
.contact-info-grid .contact-info-card a{ color:#222222; }

@media only screen and (max-width:767px){
	.care-type-block{ gap:25px; margin-bottom:45px; }
	.care-type-block.reverse{ flex-direction:row; } /* stack in document order on mobile, no reverse */
}

/* ---- Simple info sections used on the trimmed-down homepage ----------- */
.info-section{
	padding:70px 0;
}
.info-section .sec-title h2{
	margin-bottom:15px;
}

/* ==========================================================================
   Admin area - design tokens + full-height sidebar shell (admin/layout.php)
   Bootstrap is still loaded for its grid/form-control base, but the visual
   language here is our own rather than default Bootstrap.
   ========================================================================== */
.admin-body{
	--admin-navy: #0e2a4e;
	--admin-navy-light: #17406b;
	--admin-accent: #c8a294;
	--admin-bg: #f5f7fa;
	--admin-card-bg: #ffffff;
	--admin-border: #e8ebf0;
	--admin-text: #2d3748;
	--admin-text-muted: #8a94a6;
	--admin-success: #2ecc71;
	--admin-success-bg: #e8f9ee;
	--admin-success-text: #1e8449;
	--admin-danger: #e74c3c;
	--admin-danger-bg: #fdecea;
	--admin-danger-text: #c0392b;
	--admin-warning: #f5a623;
	--admin-warning-bg: #fef3e2;
	--admin-warning-text: #b9770e;
	--admin-info: #4a90d9;
	--admin-info-bg: #eaf2fb;
	background:var(--admin-bg);
	min-height:100vh;
	font-family:'Poppins', sans-serif;
	color:var(--admin-text);
}

.admin-shell{
	display:flex;
	min-height:100vh;
	align-items:stretch;
}

/* ---- Sidebar ------------------------------------------------------------ */
.admin-sidebar{
	flex:0 0 260px;
	background:linear-gradient(180deg, var(--admin-navy) 0%, var(--admin-navy-light) 100%);
	display:flex;
	flex-direction:column;
	position:sticky;
	top:0;
	height:100vh;
}
.admin-sidebar-brand{
	padding:28px 24px 20px;
	border-bottom:1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-brand a{
	color:#ffffff;
	font-size:18px;
	font-weight:700;
	text-decoration:none;
	display:block;
	line-height:1.3;
}
.admin-sidebar-brand span{
	display:block;
	color:rgba(255,255,255,0.5);
	font-size:11px;
	text-transform:uppercase;
	letter-spacing:1px;
	margin-top:4px;
}
.admin-sidebar-nav{
	flex:1 1 auto;
	padding:18px 14px;
	overflow-y:auto;
}
.admin-sidebar-nav a{
	display:flex;
	align-items:center;
	gap:12px;
	padding:12px 14px;
	margin-bottom:4px;
	border-radius:8px;
	color:rgba(255,255,255,0.65);
	text-decoration:none;
	font-size:14.5px;
	font-weight:500;
	transition:background 150ms ease, color 150ms ease;
}
.admin-sidebar-nav a i{
	width:18px;
	text-align:center;
	font-size:15px;
	color:rgba(255,255,255,0.5);
	transition:color 150ms ease;
}
.admin-sidebar-nav a:hover{
	background:rgba(255,255,255,0.07);
	color:#ffffff;
	text-decoration:none;
}
.admin-sidebar-nav a.active{
	background:rgba(255,255,255,0.13);
	color:#ffffff;
}
.admin-sidebar-nav a.active i{
	color:var(--admin-accent);
}
.admin-sidebar-badge{
	margin-left:auto;
	background:var(--admin-warning);
	color:#ffffff;
	font-size:11px;
	font-weight:700;
	line-height:1;
	padding:4px 8px;
	border-radius:20px;
}
.admin-sidebar-footer{
	padding:16px 24px 24px;
	border-top:1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-footer a{
	color:rgba(255,255,255,0.55);
	font-size:13px;
	text-decoration:none;
}
.admin-sidebar-footer a:hover{ color:#ffffff; }
.admin-sidebar-footer i{ margin-right:6px; }

/* ---- Topbar + content column --------------------------------------------- */
.admin-content-wrapper{
	flex:1 1 auto;
	min-width:0; /* lets wide tables scroll inside .admin-card instead of blowing out the layout */
	display:flex;
	flex-direction:column;
}
.admin-topbar{
	background:var(--admin-card-bg);
	border-bottom:1px solid var(--admin-border);
	padding:18px 30px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	position:sticky;
	top:0;
	z-index:10;
}
.admin-page-title{
	font-size:20px;
	font-weight:700;
	color:var(--admin-navy);
	margin:0;
}
.admin-user-menu{
	display:flex;
	align-items:center;
	gap:12px;
}
.admin-user-avatar{
	width:34px;
	height:34px;
	border-radius:50%;
	background:var(--admin-navy);
	color:#ffffff;
	display:flex;
	align-items:center;
	justify-content:center;
	font-weight:700;
	font-size:14px;
	flex-shrink:0;
}
.admin-user-email{
	font-size:13px;
	color:var(--admin-text-muted);
}
.admin-logout-btn{
	background:none;
	border:none;
	color:var(--admin-text-muted);
	font-size:15px;
	cursor:pointer;
	padding:8px 10px;
	border-radius:6px;
	text-decoration:none; /* also used on the "change password" <a>, not just the logout <button> */
	transition:background 150ms ease, color 150ms ease;
}
.admin-logout-btn:hover{
	background:var(--admin-danger-bg);
	color:var(--admin-danger-text);
}
.admin-main{
	flex:1 1 auto;
	padding:30px;
}
@media only screen and (max-width:991px){
	.admin-shell{ flex-direction:column; }
	.admin-sidebar{
		position:static;
		height:auto;
		flex-direction:row;
		align-items:center;
	}
	.admin-sidebar-brand{ border-bottom:none; padding:16px 18px; }
	.admin-sidebar-nav{
		display:flex;
		padding:0 10px;
		overflow-x:auto;
		-webkit-overflow-scrolling:touch;
	}
	.admin-sidebar-nav a{ white-space:nowrap; margin-bottom:0; }
	.admin-sidebar-footer{ display:none; }
}
@media only screen and (max-width:575px){
	.admin-user-email{ display:none; }
	.admin-topbar{ padding:14px 18px; }
	.admin-main{ padding:18px; }
}

/* ---- Cards ---------------------------------------------------------------- */
.admin-card{
	background:var(--admin-card-bg);
	border:1px solid var(--admin-border);
	border-radius:12px;
	box-shadow:0 1px 3px rgba(16,24,40,0.04);
	padding:26px;
	margin-bottom:26px;
	overflow-x:auto;
}
.admin-card h2{
	font-size:17px;
	font-weight:700;
	margin-bottom:20px;
	color:var(--admin-navy);
}
/* Header row used when a card also links to its full section (Overview's
   "recent" widgets) - overrides the h2's own margin-bottom since the row
   wrapper carries the spacing instead. */
.admin-card-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:10px;
	margin-bottom:20px;
}
.admin-card-header h2{ margin-bottom:0; }
.admin-card-link{
	font-size:13px;
	font-weight:600;
	color:var(--admin-text-muted);
	text-decoration:none;
	white-space:nowrap;
}
.admin-card-link:hover{
	color:var(--admin-navy);
	text-decoration:none;
}
.admin-card-link i{ font-size:11px; margin-left:4px; }

/* ---- Summary stat cards (Overview page) ----------------------------------- */
.admin-stats-row{
	display:grid;
	grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
	gap:20px;
	margin-bottom:30px;
}
.admin-stat-card{
	background:var(--admin-card-bg);
	border:1px solid var(--admin-border);
	border-radius:12px;
	padding:22px;
	display:flex;
	align-items:center;
	gap:16px;
	text-decoration:none;
	color:inherit;
	box-shadow:0 1px 3px rgba(16,24,40,0.04);
	transition:transform 150ms ease, box-shadow 150ms ease;
}
.admin-stat-card:hover{
	transform:translateY(-2px);
	box-shadow:0 10px 24px rgba(16,24,40,0.09);
	color:inherit;
	text-decoration:none;
}
.admin-stat-icon{
	width:50px;
	height:50px;
	border-radius:12px;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:19px;
	flex-shrink:0;
}
.admin-stat-card.tone-warning .admin-stat-icon{ background:var(--admin-warning-bg); color:var(--admin-warning-text); }
.admin-stat-card.tone-success .admin-stat-icon{ background:var(--admin-success-bg); color:var(--admin-success-text); }
.admin-stat-card.tone-info .admin-stat-icon{ background:var(--admin-info-bg); color:var(--admin-info); }
.admin-stat-card.tone-navy .admin-stat-icon{ background:#e9edf3; color:var(--admin-navy); }
.admin-stat-number{
	font-size:25px;
	font-weight:700;
	color:var(--admin-navy);
	line-height:1.15;
}
.admin-stat-label{
	font-size:12.5px;
	color:var(--admin-text-muted);
	font-weight:500;
}

/* ---- Tables (used instead of Bootstrap's table-striped/table-bordered) --- */
.admin-table{
	width:100%;
	margin-bottom:0;
	border-collapse:collapse;
}
.admin-table thead th{
	background:transparent;
	border:none;
	border-bottom:2px solid var(--admin-border);
	color:var(--admin-text-muted);
	font-size:11px;
	font-weight:700;
	text-transform:uppercase;
	letter-spacing:0.5px;
	padding:0 14px 12px;
	white-space:nowrap;
	text-align:left;
}
.admin-table tbody td{
	padding:16px 14px;
	border-top:1px solid var(--admin-border);
	border-bottom:none;
	vertical-align:middle;
	font-size:13.5px;
	color:var(--admin-text);
}
.admin-table tbody tr:hover{
	background:#fafbfd;
}
/* Small round photo thumbnail in admin tables (the endpoint always returns
   something displayable - a real photo or the generic placeholder SVG -
   so this never breaks even for caregivers who registered before this
   feature existed). */
.admin-thumb{
	width:44px;
	height:44px;
	border-radius:50%;
	object-fit:cover;
	background:#e9edf3;
}

/* ---- Status badges --------------------------------------------------------
   Combined with Bootstrap's own .badge class in the markup - these need
   their own display/padding rather than relying on .badge's, since .badge
   sets a much smaller font-size/padding we don't want here. */
.badge-pending, .badge-approved, .badge-rejected,
.badge-new, .badge-contacted, .badge-closed{
	display:inline-block;
	padding:5px 12px;
	border-radius:20px;
	font-size:11px;
	font-weight:700;
	text-transform:uppercase;
	letter-spacing:0.4px;
	line-height:1.4;
}
.badge-pending{ background:var(--admin-warning-bg); color:var(--admin-warning-text); }
.badge-approved{ background:var(--admin-success-bg); color:var(--admin-success-text); }
.badge-rejected{ background:var(--admin-danger-bg); color:var(--admin-danger-text); }
/* care_requests.status (new/contacted/closed) - a separate enum from the
   pending/approved/rejected above, so its own colour set: new=needs action
   (info blue), contacted=in progress (warning amber), closed=done (neutral grey). */
.badge-new{ background:var(--admin-info-bg); color:var(--admin-info); }
.badge-contacted{ background:var(--admin-warning-bg); color:var(--admin-warning-text); }
.badge-closed{ background:#eceff3; color:var(--admin-text-muted); }

/* ---- Buttons/forms/alerts, scoped to admin so the public site is untouched */
.admin-main .btn{
	border-radius:6px;
	font-weight:600;
	font-size:13px;
}
.admin-main .btn-success{ background:var(--admin-success); border-color:var(--admin-success); }
.admin-main .btn-danger{ background:var(--admin-danger); border-color:var(--admin-danger); }
.admin-main .btn-primary{ background:var(--admin-navy); border-color:var(--admin-navy); }
.admin-main .btn-outline-secondary{
	border-color:var(--admin-border);
	color:var(--admin-text-muted);
}
.admin-main .btn-outline-secondary:hover{
	background:var(--admin-navy);
	border-color:var(--admin-navy);
	color:#ffffff;
}
.admin-main .form-control{
	border-color:var(--admin-border);
	border-radius:6px;
	font-size:13.5px;
}
.admin-main .alert{
	border:none;
	border-radius:10px;
	padding:16px 20px;
}
.admin-main .alert-success{ background:var(--admin-success-bg); color:var(--admin-success-text); }
.admin-main .alert-danger{ background:var(--admin-danger-bg); color:var(--admin-danger-text); }

/* ---- Login page ------------------------------------------------------------ */
.admin-login-wrapper{
	min-height:100vh;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:20px;
	background:linear-gradient(135deg, var(--admin-navy, #0e2a4e) 0%, #17406b 100%);
}
.admin-login-box{
	background:#ffffff;
	border-radius:14px;
	box-shadow:0 20px 50px rgba(0,0,0,0.25);
	padding:44px 40px;
	max-width:400px;
	width:100%;
}
.admin-login-box .admin-login-icon{
	width:56px;
	height:56px;
	border-radius:14px;
	background:var(--admin-navy, #0e2a4e);
	color:#ffffff;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:22px;
	margin-bottom:20px;
}
.admin-login-box h2{
	font-size:20px;
	font-weight:700;
	color:var(--admin-navy, #0e2a4e);
}
.admin-login-box .form-control{
	border-radius:8px;
	padding:12px 14px;
	height:auto;
}
.admin-login-box .btn-primary{
	background:var(--admin-navy, #0e2a4e);
	border-color:var(--admin-navy, #0e2a4e);
	border-radius:8px;
	padding:12px;
	font-weight:600;
}

/* ---- Compact footer ----------------------------------------------------
   Template default (style.css) uses 80px top padding + 30px widget margins,
   which reads as oversized against this site's short link list / contact
   block. Trims the same spacing rules down instead of editing style.css.
*/
.main-footer .widgets-section{
	padding:40px 0px 10px;
}
.main-footer .footer-widget{
	margin-bottom:16px;
}
.main-footer .footer-widget h2{
	font-size:17px;
	margin-bottom:12px;
	padding-bottom:8px;
}
.main-footer .logo-widget .logo{
	margin-bottom:12px;
}
.main-footer .logo-widget .text{
	margin-bottom:10px;
	line-height:1.6em;
}
.links-widget .list li{
	margin-bottom:8px;
}
.contact-widget .contact-number{
	font-size:17px;
	margin-bottom:6px;
}
.main-footer .footer-bottom{
	padding:14px 0px;
}
.footer-links-columns{
	display:flex;
	gap:16px;
}
.footer-links-columns .list{
	flex:1;
	min-width:0;
}
/* Template's social-icons CSS (style.css) is scoped to .logo-widget only;
   reused here as its own footer column, so restated generically. */
.main-footer .social-icons li{
	position:relative;
	margin-right:10px;
	display:inline-block;
	vertical-align:top;
}
.main-footer .social-icons li a{
	position:relative;
	width:36px;
	height:36px;
	font-size:14px;
	border-radius:50%;
	color:#ffffff;
	font-weight:400;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border:1px solid rgba(255,255,255,0.30);
	transition:all 300ms ease;
}
.main-footer .social-icons li a:hover{
	color:#be9a8d;
	border-color:#be9a8d;
}
.main-footer .social-icons li a .tiktok-icon{
	width:14px;
	height:14px;
	fill:currentColor;
}

/* ---- Floating WhatsApp button ------------------------------------------
   Sits opposite the theme's own .scroll-to-top (bottom-right) so the two
   never overlap. A quiet pulsing ring runs continuously (draws the eye
   without being distracting); a bigger bounce plays briefly once per cycle
   to actually grab attention.
*/
.whatsapp-float{
	position:fixed;
	left:24px;
	bottom:24px;
	width:58px;
	height:58px;
	border-radius:50%;
	background:#25d366;
	color:#ffffff;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:28px;
	box-shadow:0 4px 14px rgba(0,0,0,0.28);
	z-index:999;
	animation:whatsapp-bounce 4s ease-in-out infinite;
}
.whatsapp-float:hover{
	background:#1ebe57;
	color:#ffffff;
}
.whatsapp-float-ping{
	position:absolute;
	inset:0;
	border-radius:50%;
	background:#25d366;
	opacity:0.55;
	animation:whatsapp-ping 2.2s cubic-bezier(0,0,0.2,1) infinite;
}
.whatsapp-float .fab{
	position:relative;
	z-index:1;
}
@keyframes whatsapp-ping{
	0%{ transform:scale(1); opacity:0.55; }
	100%{ transform:scale(1.8); opacity:0; }
}
@keyframes whatsapp-bounce{
	0%, 15%, 100%{ transform:translateY(0); }
	7%{ transform:translateY(-10px); }
}
@media (max-width:576px){
	.whatsapp-float{ left:16px; bottom:16px; width:50px; height:50px; font-size:24px; }
}

/* ---- Admin: 14-day trend chart (pure CSS, no charting library) -------- */
.admin-trend-chart{
	display:flex;
	align-items:flex-end;
	height:160px;
	gap:6px;
	padding:10px 4px 0;
	overflow-x:auto;
}
.admin-trend-day{
	display:flex;
	flex-direction:column;
	align-items:center;
	flex:1;
	min-width:28px;
}
.admin-trend-bars{
	display:flex;
	align-items:flex-end;
	gap:3px;
	height:130px;
	width:100%;
	justify-content:center;
}
.admin-trend-bar{
	width:9px;
	border-radius:3px 3px 0 0;
	transition:height 300ms ease;
}
.admin-trend-bar.bar-caregiver{ background:var(--admin-navy); }
.admin-trend-bar.bar-request{ background:var(--admin-accent); }
.admin-trend-label{
	margin-top:8px;
	font-size:10px;
	color:var(--admin-text-muted);
	white-space:nowrap;
}
.admin-trend-legend{
	display:flex;
	gap:20px;
	margin-top:14px;
	padding-top:14px;
	border-top:1px solid var(--admin-border);
	font-size:13px;
	color:var(--admin-text-muted);
}
.admin-trend-dot{
	display:inline-block;
	width:10px;
	height:10px;
	border-radius:50%;
	margin-right:6px;
}
.admin-trend-dot.dot-caregiver{ background:var(--admin-navy); }
.admin-trend-dot.dot-request{ background:var(--admin-accent); }

/* ---- Blog post image placeholder ----------------------------------------
   Shown instead of a fake stock photo when a post has no featured image
   uploaded - same reasoning as the caregiver-photo silhouette placeholder
   (Caregivers::photo()), just for blog cards/detail instead.
*/
.blog-image-placeholder{
	height:260px;
	display:flex;
	align-items:center;
	justify-content:center;
	background:linear-gradient(135deg, #0e2a4e 0%, #17406b 100%);
	color:rgba(255,255,255,0.35);
	font-size:56px;
}

/* ---- Availability badge (caregivers/index.php, caregivers/show.php) ----
   Shows whether a caregiver has an active engagement right now (see
   CaregiverModel::publicRatingSelect()'s is_available column) - so
   browsing the general directory/profile doesn't leave a family finding
   out only after contacting someone that they're already busy elsewhere.
*/
.availability-badge{
	display:inline-block;
	margin-top:8px;
	margin-bottom:10px;
	padding:4px 12px;
	border-radius:20px;
	font-size:12px;
	font-weight:700;
	letter-spacing:0.5px;
	text-transform:uppercase;
}
.availability-badge.is-available{
	background:#e8f9ee;
	color:#1e8449;
}
.availability-badge.is-busy{
	background:#fef3e2;
	color:#b9770e;
}

/* ---- "Skip - let CareLink match me" box (care_requests/choose_caregiver.php)
   Needs to stand out even when the caregiver grid above it is empty (no
   matches for the filters/care type) - a plain text link was easy to miss
   right when it matters most, so it's a bordered callout with its own button.
*/
.skip-matching-box{
	padding:30px;
	background:#f9f5f3;
	border:1px solid #e7d9d3;
	border-radius:8px;
}
.skip-matching-box .text{
	margin-bottom:16px;
	font-weight:600;
	color:#432538;
}
