/* ==========================================================================
   SIPALING BISA — Bright Daylight Frontend Theme (Versi Trial)
   Scoped to body.frontend-trial so internal apps remain unaffected.
   ========================================================================== */

body.frontend-trial {
	background-color: #f6faf8;
	color: #0f172a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Top Official Strip */
.ft-topbar {
	background: #ecfdf5;
	border-bottom: 1px solid #d1fae5;
	color: #065f46;
	font-size: 0.78rem;
	padding: 6px 0;
}
.ft-topbar .ft-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	margin-right: 6px;
}

/* Sticky Clean Header */
.ft-header {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
	position: sticky;
	top: 0;
	z-index: 1030;
}
.ft-header .navbar {
	padding: 0.55rem 0;
	background: transparent !important;
}
.ft-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
}
.ft-brand-logo {
	height: 46px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.ft-brand-title {
	font-size: 1.28rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.ft-brand-title .t-amber { color: #f59e0b; }
.ft-brand-title .t-green { color: #047857; }
.ft-brand-sub {
	font-size: 0.72rem;
	font-weight: 600;
	color: #475569;
	margin-top: 2px;
}

/* Nav links */
.ft-header .nav-link {
	color: #334155 !important;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.42rem 0.6rem !important;
	border-radius: 8px;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}
.ft-header .nav-link:hover,
.ft-header .nav-item.show > .nav-link {
	color: #047857 !important;
	background-color: #ecfdf5;
}
.ft-header .nav-item.active > .nav-link {
	color: #047857 !important;
	background-color: #ecfdf5;
	box-shadow: inset 0 0 0 1px #a7f3d0;
}
.ft-header .dropdown-menu {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12);
	padding: 6px;
	font-size: 0.84rem;
	max-height: calc(100vh - 96px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.ft-header .dropdown-item {
	border-radius: 8px;
	padding: 7px 12px;
	color: #334155;
	font-weight: 500;
}
.ft-header .dropdown-item:hover,
.ft-header .dropdown-item.active {
	background-color: #ecfdf5;
	color: #047857;
}

/* Buttons */
.btn-ft-primary {
	background: #059669;
	border: 1px solid #059669;
	color: #ffffff !important;
	font-weight: 700;
	border-radius: 10px;
	padding: 0.42rem 0.95rem;
	font-size: 0.82rem;
	transition: all 0.15s;
}
.btn-ft-primary:hover {
	background: #047857;
	border-color: #047857;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.btn-ft-outline {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #047857 !important;
	font-weight: 600;
	border-radius: 10px;
	padding: 0.42rem 0.85rem;
	font-size: 0.82rem;
	transition: all 0.15s;
}
.btn-ft-outline:hover {
	background: #d1fae5;
	color: #065f46 !important;
}
.btn-ft-amber {
	background: #f59e0b;
	border: 1px solid #f59e0b;
	color: #ffffff !important;
	font-weight: 700;
	border-radius: 10px;
	transition: all 0.15s;
}
.btn-ft-amber:hover {
	background: #d97706;
	border-color: #d97706;
}

/* Bright Daylight Hero */
.ft-hero {
	background:
		radial-gradient(circle at 86% 18%, rgba(251, 191, 36, 0.18), transparent 40%),
		radial-gradient(circle at 10% 85%, rgba(16, 185, 129, 0.14), transparent 44%),
		linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 54%, #fffbeb 100%);
	border-bottom: 1px solid #d1fae5;
	padding: 2.6rem 0 2.8rem;
}
.ft-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-size: 0.76rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(5, 150, 105, 0.06);
}
.ft-hero-title {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.2;
	color: #0f172a;
	letter-spacing: -0.02em;
	margin: 0.85rem 0 0.75rem;
}
.ft-hero-title .c-green { color: #047857; }
.ft-hero-title .c-amber { color: #f59e0b; }
.ft-hero-desc {
	font-size: 0.94rem;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

/* Tracking Card */
.ft-track-box {
	background: #ffffff;
	border: 1px solid #a7f3d0;
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: 0 8px 24px -8px rgba(5, 150, 105, 0.14);
}
.ft-track-box .form-control {
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	font-size: 0.84rem;
	height: calc(2.15rem + 2px);
}
.ft-track-box .form-control:focus {
	background: #ffffff;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

/* Soft Cards */
.ft-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.06);
}
.ft-kpi-tile {
	border-radius: 12px;
	padding: 11px 12px;
	border: 1px solid #e2e8f0;
}
.ft-kpi-tile.green { background: #ecfdf5; border-color: #a7f3d0; }
.ft-kpi-tile.amber { background: #fffbeb; border-color: #fde68a; }
.ft-kpi-tile.sky { background: #f0f9ff; border-color: #bae6fd; }
.ft-kpi-val { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.ft-kpi-lbl { font-size: 0.72rem; color: #475569; margin-top: 3px; line-height: 1.25; }

/* App Launcher Tiles & Ecosystem Cards */
.ft-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #0f172a !important;
	text-decoration: none !important;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
	cursor: pointer;
	width: 100%;
	text-align: left;
}
.ft-tile:hover {
	transform: translateY(-2px);
	border-color: #10b981;
	box-shadow: 0 10px 22px -8px rgba(5, 150, 105, 0.18);
}
.ft-tile-icon {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	flex-shrink: 0;
}
.ft-service-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 18px;
	height: 100%;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.ft-service-card:hover {
	transform: translateY(-3px);
	border-color: #10b981;
	box-shadow: 0 12px 26px -10px rgba(5, 150, 105, 0.18);
}

/* Modern 16:9 Carousel */
.ft-carousel {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.06);
}
.ft-carousel .carousel-item img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #ecfdf5;
}
.ft-carousel-caption {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	background: rgba(255, 255, 255, 0.93);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	padding: 12px 16px;
	color: #0f172a;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
.ft-carousel-caption h5 {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 3px;
	color: #0f172a;
}
.ft-carousel-caption p {
	font-size: 0.8rem;
	margin: 0;
	color: #475569;
}

/* Article list */
.ft-article-item {
	display: block;
	padding: 11px 10px;
	margin: 0 -10px;
	border-radius: 10px;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none !important;
	color: #0f172a !important;
	transition: background-color 0.15s;
}
.ft-article-item:last-child { border-bottom: 0; }
.ft-article-item:hover { background-color: #ecfdf5; }

/* FAQ Accordion */
.ft-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 10px;
	background: #ffffff;
}
.ft-faq-btn {
	width: 100%;
	text-align: left;
	background: #f8fafc;
	border: 0;
	padding: 13px 16px;
	font-size: 0.88rem;
	font-weight: 700;
	color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	transition: background-color 0.15s;
}
.ft-faq-btn:hover { background: #ecfdf5; color: #065f46; }
.ft-faq-body {
	padding: 13px 16px;
	font-size: 0.85rem;
	color: #475569;
	border-top: 1px solid #f1f5f9;
	background: #ffffff;
	line-height: 1.6;
}

/* Bright Footer */
body.frontend-trial footer.ft-footer {
	background: #ffffff !important;
	color: #475569 !important;
	border-top: 1px solid #d1fae5;
	padding-top: 2.2rem;
	margin-top: 2.5rem;
}
body.frontend-trial footer.ft-footer h6 {
	color: #0f172a;
	font-weight: 800;
	font-size: 0.84rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.85rem;
}
body.frontend-trial footer.ft-footer a {
	color: #047857;
	text-decoration: none;
}
body.frontend-trial footer.ft-footer a:hover {
	text-decoration: underline;
}
body.frontend-trial .ft-footer-bottom {
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	color: #64748b;
	font-size: 0.8rem;
	padding: 0.85rem 1rem;
	margin-top: 1.5rem;
}

/* Hamburger button (always crisp and visible on mobile) */
body.frontend-trial .ft-header .navbar-toggler {
	border: 1px solid #cbd5e1 !important;
	background-color: #f8fafc !important;
	border-radius: 10px;
	padding: 6px 10px;
	outline: none;
}
body.frontend-trial .ft-header .navbar-toggler:hover,
body.frontend-trial .ft-header .navbar-toggler:focus {
	background-color: #ecfdf5 !important;
	border-color: #10b981 !important;
}
body.frontend-trial .ft-header .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23065f46' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
	.ft-hero-title { font-size: 1.55rem; }
	.ft-brand-logo { height: 38px; }
	.ft-brand-title { font-size: 1.12rem; }
	.ft-brand-sub { font-size: 0.68rem; }

	/* Override legacy dark mobile rules from custom-dashboard.css */
	body.frontend-trial .ft-header .navbar-collapse {
		position: static !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-height: calc(100vh - 82px) !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		background: #ffffff !important;
		margin-top: 10px;
		padding: 10px 0 14px !important;
		border-top: 1px solid #e2e8f0 !important;
	}
	body.frontend-trial .ft-header .navbar-nav > li > a.nav-link {
		color: #1e293b !important;
		background-color: transparent !important;
		padding: 10px 14px !important;
		line-height: 1.35 !important;
		border-radius: 10px;
		border-left: none !important;
		margin-bottom: 2px;
	}
	body.frontend-trial .ft-header .navbar-nav > li > a.nav-link:hover,
	body.frontend-trial .ft-header .navbar-nav > li.show > a.nav-link,
	body.frontend-trial .ft-header .navbar-nav > li.active > a.nav-link {
		color: #047857 !important;
		background-color: #ecfdf5 !important;
		border-left: none !important;
	}
	body.frontend-trial .ft-header .navbar-nav > .dropdown > .dropdown-menu {
		background-color: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 10px !important;
		padding: 6px !important;
		margin: 4px 0 8px 0 !important;
		box-shadow: none !important;
	}
	body.frontend-trial .ft-header .navbar-nav > .dropdown > .dropdown-menu > a.dropdown-item {
		color: #334155 !important;
		background-color: transparent !important;
		padding: 9px 12px 9px 18px !important;
		line-height: 1.35 !important;
		border-radius: 8px !important;
		border-left: none !important;
	}
	body.frontend-trial .ft-header .navbar-nav > .dropdown > .dropdown-menu > a.dropdown-item:hover,
	body.frontend-trial .ft-header .navbar-nav > .dropdown > .dropdown-menu > a.dropdown-item.active {
		color: #047857 !important;
		background-color: #d1fae5 !important;
		border-left: none !important;
	}
	body.frontend-trial .ft-header .ft-auth-wrap {
		margin-top: 10px !important;
		padding-top: 10px;
		border-top: 1px solid #e2e8f0;
		width: 100%;
	}
	body.frontend-trial .ft-header .ft-auth-wrap > .btn,
	body.frontend-trial .ft-header .ft-auth-wrap > .dropdown {
		flex: 1 1 auto;
	}
	body.frontend-trial .ft-header .ft-auth-wrap > .dropdown > .btn {
		width: 100%;
	}
	body.frontend-trial .ft-header .ft-auth-wrap .dropdown-menu {
		position: static !important;
		float: none !important;
		width: 100% !important;
		max-height: none !important;
		overflow: visible !important;
		margin-top: 8px !important;
		box-shadow: none !important;
		background-color: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 12px !important;
	}
	body.frontend-trial .ft-header .ft-quick-apps {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
		padding: 4px !important;
	}
	body.frontend-trial .ft-header .ft-quick-apps .dropdown-item {
		padding: 8px 8px !important;
		font-size: 0.78rem !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		background: #ffffff;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
	}
}
