﻿
body {
}

/* ==============================
   ROOT VARIABLES
================================ */
:root {
	--brand: #008286;
	--brand-dark: #005a5e;
	--brand-soft: #f3f9f9;
	--brand-line: #d6e9ea;
	--sb-width: 270px;
	--sb-width-mini: 72px;
	--topbar-h: 58px;
}

/* ==============================
   TOPBAR
================================ */
.topbar {
	background: var(--brand);
	padding: .6rem 0;
	height: var(--topbar-h);
	position: sticky;
	top: 0;
	z-index: 1030;
}

.topbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	height: 100%;
	padding: 0 1rem;
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-shrink: 0;
}

.topbar .logo {
	color: #fff;
	font-size: 1.6rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 3px;
	text-decoration: none;
	white-space: nowrap;
}

.logo-responsive {
	width: 310px;
	height: 30px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
	z-index: 99;
}

.topbar-search {
	order: 2;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
}

	.topbar-search .form-control {
		min-width: 0;
	}

.topbar .btn-search {
	background: var(--brand-dark);
	color: #fff;
	border-color: var(--brand-dark);
	white-space: nowrap;
}

	.topbar .btn-search:hover {
		background: #004a4d;
		color: #fff;
	}

.topbar-right {
	order: 3;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-shrink: 0;
}

.topbar .dropdown-toggle,
.topbar .topbar-login,
.topbar .topbar-user {
	color: rgba(255,255,255,.85);
}

	.topbar .dropdown-toggle:hover,
	.topbar .topbar-login:hover,
	.topbar .topbar-user:hover {
		color: #fff;
	}

.topbar .topbar-user {
	margin-left: auto;
	text-decoration: none;
}

/* ==============================
   MENU TOGGLE
================================ */
.menu-toggle {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,.5);
	border-radius: .375rem;
	padding: .2rem .45rem;
	line-height: 1;
}

	.menu-toggle:hover,
	.menu-toggle:focus-visible {
		background: rgba(255,255,255,.15);
		outline: 0;
	}

/* ==============================
   CATEGORY LIST
================================ */
.category-list .list-group-item {
	color: var(--brand);
	font-weight: 600;
	text-transform: uppercase;
	padding: 1rem 1.25rem;
}

	.category-list .list-group-item:hover {
		background: var(--brand-soft);
	}

	.category-list .list-group-item.plain {
		font-weight: 400;
	}

.category-list .badge {
	background: var(--brand) !important;
}

/* ==============================
   SIDEBAR
================================ */
.sidebar {
	--bs-offcanvas-width: var(--sb-width);
	background: #fff;
	border-right: 1px solid #dee2e6;
}

.sidebar-head {
	background: var(--brand);
	color: #fff;
	padding: .9rem 1.25rem;
	font-weight: 700;
	letter-spacing: 3px;
}

.sidebar-scroll {
	overflow-y: auto;
	padding: .75rem;
	flex: 1;
}

.sidebar-group {
	margin: 1.1rem .75rem .4rem;
	font-size: .8rem;
	color: #6c757d;
}

	.sidebar-group:first-child {
		margin-top: .25rem;
	}

.sidebar .nav-link {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: .75rem 1rem;
	border-radius: .375rem;
	color: var(--brand);
	font-weight: 600;
	font-size: .9rem;
	text-transform: uppercase;
	white-space: nowrap;
}

	.sidebar .nav-link i {
		flex: none;
		width: 1.25rem;
		font-size: 1.1rem;
		text-align: center;
	}

	.sidebar .nav-link:hover {
		background: var(--brand-soft);
		color: var(--brand-dark);
	}

	.sidebar .nav-link:focus-visible {
		outline: 0;
		box-shadow: 0 0 0 .2rem rgba(0,110,115,.25);
	}

	.sidebar .nav-link.active {
		background: var(--brand);
		color: #fff;
	}

.sidebar .badge-count {
	margin-left: auto;
	font-size: .72rem;
	font-weight: 600;
	text-transform: none;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
}

.sidebar .nav-link.active .badge-count {
	background: #fff;
	color: var(--brand);
}

.sidebar .chevron {
	margin-left: auto;
	font-size: .8rem;
	transition: transform .2s;
}

.sidebar .nav-link[aria-expanded="true"] .chevron {
	transform: rotate(180deg);
}

.sidebar .nav-link[aria-expanded="true"]:not(.active) {
	background: var(--brand-soft);
}

.sidebar .submenu {
	margin: .15rem 0 .25rem 1.4rem;
	padding-left: .75rem;
	border-left: 2px solid var(--brand-line);
}

	.sidebar .submenu .nav-link {
		padding: .5rem .75rem;
		font-weight: 400;
		text-transform: none;
		font-size: .95rem;
	}

/* Sidebar user */
.sidebar-user {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .9rem 1.25rem;
	border-top: 1px solid #dee2e6;
	background: var(--brand-soft);
}

	.sidebar-user .avatar {
		flex: none;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		display: grid;
		place-items: center;
		background: var(--brand);
		color: #fff;
		font-weight: 600;
		font-size: .9rem;
	}

	.sidebar-user .name {
		font-size: .9rem;
		font-weight: 600;
		line-height: 1.2;
		color: #333;
	}

	.sidebar-user .role {
		font-size: .78rem;
		color: #6c757d;
	}

	.sidebar-user .logout {
		margin-left: auto;
		padding: .35rem .5rem;
	}

/* ==============================
   PAGE TITLE
================================ */
.page-title {
	font-size: 2rem;
	font-weight: 500;
	text-transform: uppercase;
	padding-bottom: 1rem;
	border-bottom: 1px solid #dee2e6;
}

/* ==============================
   GUIDE CARDS
================================ */
.guide-card {
	border: 0;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	border-radius: 2px;
	height: 100%;
	transition: box-shadow .2s;
}

	.guide-card:hover {
		box-shadow: 0 4px 12px rgba(0,0,0,.3);
	}

	.guide-card img {
		aspect-ratio: 16 / 9;
		object-fit: cover;
		border-radius: 0;
	}

	.guide-card .card-body {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 1.5rem 1rem;
	}

	.guide-card .card-title {
		margin: 0;
		font-size: 1rem;
		font-weight: 700;
		text-transform: uppercase;
		color: #333;
	}

a.guide-link {
	text-decoration: none;
	display: block;
	height: 100%;
}

/* ==============================
   GUIDE ACCORDION
================================ */
.guide-accordion .accordion-button {
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--brand);
}

	.guide-accordion .accordion-button:not(.collapsed) {
		color: #fff;
		background: var(--brand);
	}

		.guide-accordion .accordion-button:not(.collapsed)::after {
			filter: brightness(0) invert(1);
		}

	.guide-accordion .accordion-button:focus {
		box-shadow: 0 0 0 .2rem rgba(0,110,115,.25);
	}

.guide-accordion .accordion-item {
	margin-bottom: .5rem;
	border: 1px solid #dee2e6;
	border-radius: .375rem;
	overflow: hidden;
}

/* ==============================
   GUIDE CAROUSEL
================================ */
.guide-carousel .carousel-control-prev-icon,
.guide-carousel .carousel-control-next-icon {
	filter: invert(1) grayscale(1);
}

.guide-carousel .carousel-indicators {
	position: static;
	margin: .75rem 0 0;
}

	.guide-carousel .carousel-indicators [data-bs-target] {
		background-color: var(--brand);
	}

/* ==============================
   UNIT TABLE
================================ */
.unit-table thead th {
	background: var(--brand);
	color: #fff;
	font-weight: 600;
	border-color: var(--brand);
	white-space: nowrap;
}

.unit-table tbody tr:hover {
	background: var(--brand-soft);
	cursor: pointer;
}

.unit-table th:first-child,
.unit-table td:first-child {
	width: 1%;
	white-space: nowrap;
	padding-right: 5rem;
}

.unit-table .unit-thumb {
	width: 300px;
	max-width: none;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: .25rem;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.unit-table .unit-name {
	color: var(--brand);
	font-weight: 600;
	font-size: 1.5rem;
	text-decoration: none;
}

	.unit-table .unit-name:hover {
		color: var(--brand-dark);
		text-decoration: underline;
	}

.unit-table .qty {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

/* ==============================
   BREADCRUMB
================================ */
.breadcrumb-modern {
	--bs-breadcrumb-divider: '›';
	--bs-breadcrumb-divider-color: var(--brand);
	background: var(--brand-soft);
	border: 1px solid var(--brand-line);
	border-radius: .5rem;
	padding: .7rem 1rem;
	margin-bottom: 1.5rem;
	font-size: .95rem;
}

	.breadcrumb-modern .breadcrumb-item a {
		color: var(--brand);
		text-decoration: none;
		font-weight: 700;
		display: inline-flex;
		align-items: center;
		gap: .35rem;
	}

		.breadcrumb-modern .breadcrumb-item a:hover {
			color: var(--brand-dark);
			text-decoration: underline;
		}

	.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
		font-size: 1.2rem;
		line-height: 1;
	}

	.breadcrumb-modern .breadcrumb-item.active {
		color: #333;
		font-weight: 700;
	}

/* ==============================
   DESKTOP SIDEBAR
================================ */
@media (min-width: 992px) {
	.sidebar.offcanvas-lg {
		position: fixed;
		inset: var(--topbar-h) auto 0 0;
		z-index: 1020;
		width: var(--sb-width) !important;
		height: auto !important;
		background-color: #fff !important;
		border-right: 1px solid #dee2e6 !important;
		transition: width .2s ease;
	}

	.content-wrap {
		margin-left: var(--sb-width);
		transition: margin-left .2s ease;
	}

	body.sb-mini .sidebar.offcanvas-lg {
		width: var(--sb-width-mini) !important;
	}

	body.sb-mini .content-wrap {
		margin-left: var(--sb-width-mini);
	}

	/* Daraltılmış sidebar */
	body.sb-mini .sidebar .label,
	body.sb-mini .sidebar .chevron,
	body.sb-mini .sidebar .badge-count,
	body.sb-mini .sidebar .sidebar-group,
	body.sb-mini .sidebar .sidebar-user .meta,
	body.sb-mini .sidebar .sidebar-user .logout {
		display: none;
	}

	body.sb-mini .sidebar .nav-link {
		justify-content: center;
		padding-inline: 0;
	}

	body.sb-mini .sidebar .submenu {
		display: none !important;
	}

	body.sb-mini .sidebar-user {
		justify-content: center;
		padding-inline: 0;
	}
}

/* ==============================
   RESPONSIVE TOPBAR
================================ */
@media (max-width: 767.98px) {
	.topbar-left {
		margin-right: auto;
	}

	.topbar-right {
		order: 2;
	}

	.topbar-search {
		order: 3;
		flex: 0 0 100%;
	}

	.logo-responsive {
		width: 200px;
	}
}

/* ==============================
   SMALL SCREEN UNIT TABLE
================================ */
@media (max-width: 575.98px) {
	.unit-table .unit-thumb {
		width: 180px;
	}

	.unit-table .unit-name {
		font-size: 1rem;
	}
}

/* ==============================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
	.sidebar,
	.content-wrap,
	.sidebar .chevron {
		transition: none !important;
	}
}
