@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'icomoon/style.css';
@source "../node_modules/flowbite-datepicker";

:root {
	--primary: #002c6f;
}



/* HEADER BEGIN */
	.header {
	border-top: 1px solid #ffffff00;
	margin-top: -1px;
}

header.fixed .container {
	max-width: 100% !important
}

header.fixed #headerSearchBar, header.-style-white #headerSearchBar {
	display: block !important
}

button.swal2-styled {
	background-color: var(--swal2-confirm-button-background-color) !important
}

h2:where(.swal2-title) {
	font-size: 1.5em !important
}

.logo-white {
	/*-webkit-filter: invert(100%);
	filter: invert(100%);*/
}

.header .category_nav {
	max-width: 900px
}

.header .no-profile-image {
	border: 1px solid white;
	background: white
}

.header .notification_block .notification_submenu::before {
	right: 40px !important;
	left: auto !important;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

#headerSearchBar #headerSearchBarContainer {
	position: absolute;
	left: 15px;
	right: 15px;
	top: 12px;
	color: #999;
	pointer-events: none;
	transition: opacity 0.3s;
	max-width: calc(100% - 30px);
	overflow: hidden;
}

#headerSearchBar headerSearchBarContainer.hide {
	opacity: 0;
}

#headerSearchBar #headerSearchBarContainer span {
	display: block;
	animation: slideUp2 0.5s ease-out;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* HEADER END */


/* COMMON START */
@keyframes slideUp2 {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.animate {
	opacity: initial !important;
	transform: none !important;
}

.swiper-button-disabled {
	opacity: 0.3
}

.list_layout_cols.cols_1 .service-image {
	max-height: 200px !important;
	object-fit: cover;
	object-position: center;
}

.list_layout .layout_btn.cols_1::before, .list_layout .layout_btn.grid1::before,
.list_layout .layout_link.cols_1::before,
.list_layout .layout_link.grid1::before {
	background-image: url("/assets/images/icon/list.svg");
}

.list_layout .layout_btn.cols_1.active::before, .list_layout .layout_btn.grid1.active::before,
.list_layout .layout_link.cols_1.active::before,
.list_layout .layout_link.grid1.active::before {
	background-image: url("/assets/images/icon/list-active.svg");
}
/* COMMON END */






/* SELECT2 TO TAILWIND START */
.select2-container {
	margin-top: 0.75rem!important;
}

.select2-results__options{
padding-bottom:6px!important
}

.select2-container--default .select2-selection--single {
	height: 50px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.5rem !important;
	padding: 0 1rem !important;
}

	.select2-container--default .select2-selection--single .select2-selection__rendered {
		line-height: 48px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.select2-container--default .select2-selection--single .select2-selection__arrow {
		height: 48px !important;
		right: 10px !important;
	}

.select2-dropdown {
	border: 1px solid #e5e7eb !important;
	border-radius: 0.5rem !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.select2-results__option {
	padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
	border: 1px solid #e5e7eb !important;
	border-radius: 0.375rem !important;
	padding: 0.5rem !important;
}

/* SELECT TO TAILWIND START */

/* SELECT2 MULTIPLE TO TAILWIND */
.select2-container--default .select2-selection--multiple {
    min-height: 50px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 4px 14px !important;
    padding-left: 20px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: none !important;
    margin-right: 6px !important;
    color: #6b7280 !important;
    /* boyut */
    width: 18px !important;
    height: 28px !important;
}



.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 0 !important;
    height: 28px !important;
    font-size: 14px !important;
}
.select2-search__field{
    min-width: 300px !important;
}

    /* focus görünümü */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #002c6f !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
}
/* SELECT2 MULTIPLE TO TAILWIND */

/* TOGGLE peer fallback (Tailwind bağımsız) */
.toggle-track {
    transition: background-color .2s ease;
}

/* input + div sibling selector */
.peer:checked + .toggle-track {
    background-color: #002c6f; /* primary yerine direkt renk */
}

/* knob */
.peer:checked + .toggle-track::after {
    transform: translateX(20px);
    border-color: #ffffff;
}

/* focus ring benzeri */
.peer:focus + .toggle-track {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .2);
}
/* TOGGLE peer fallback (Tailwind bağımsız) */

/* Advance Payment Method Cards Set Service  (Tailwind bağımsız) */
.ap-card{
    position: relative;
    width: 100%;
    text-align: left;
    border: 2px solid #e5e7eb;      /* border-line benzeri */
    border-radius: 12px;
    background: #fff;
    padding: 18px 18px 18px 18px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}


.ap-card:hover{
    border-color: #002c6f; /* primary hover hissi */
}

.ap-body{ padding-right: 42px; }

.ap-title{
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.ap-desc{
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.ap-check{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}

.ap-check-icon{
    width: 14px;
    height: 14px;
    color: #fff;
}

/* Active state */
.ap-card.is-active{
    border-color: #002c6f;          /* primary */
    
}

.ap-card.is-active .ap-check{
    opacity: 1;
    transform: scale(1);
    background: #002c6f;            /* primary */
}



/* FOOTER */
footer .footer_logo img {
	filter: brightness(0) invert(1)
}

/* Profile sidebar collapse */
.profile-sidebar {
	transition: width 0.2s ease, min-width 0.2s ease;
}

.profile-sidebar .icon-expand {
	display: none;
}

.profile-sidebar.is-collapsed {
	width: 88px !important;
	min-width: 88px !important;
	overflow: visible;
}

.profile-sidebar.is-collapsed .icon-collapse {
	display: none;
}

.profile-sidebar.is-collapsed .icon-expand {
	display: inline-block;
}

.profile-sidebar.is-collapsed .sidebar-section-title,
.profile-sidebar.is-collapsed .sidebar-label,
.profile-sidebar.is-collapsed .sidebar-badge {
	display: none;
}

.profile-sidebar.is-collapsed .inner {
	overflow: visible;
}

.profile-sidebar.is-collapsed .link {
	justify-content: center;
	gap: 0;
	padding-left: 0;
	padding-right: 0;
}

.profile-sidebar.is-collapsed .sidebar-toggle-row {
	justify-content: center;
}

/* Sidebar search: show icon-only on collapse */
.profile-sidebar .sidebar-search-toggle {
	display: none;
}

.profile-sidebar.is-collapsed .sidebar-search-form {
	display: none;
}

.profile-sidebar.is-collapsed .sidebar-search-toggle {
	display: flex;
}

/* Sidebar logo swap on collapse */
.profile-sidebar .sidebar-logo-icon {
	display: none;
}

.profile-sidebar.is-collapsed .sidebar-logo-full {
	display: none;
}

.profile-sidebar.is-collapsed .sidebar-logo-icon {
	display: block;
}

.profile-sidebar.is-collapsed .sidebar-logo-row {
	justify-content: center;
}

.profile-sidebar.is-collapsed .sidebar-logo-row a {
	justify-content: center;
}

/* Collapsed sidebar: stack footer actions */
.profile-sidebar.is-collapsed .sidebar-shell-footer {
	padding-top: 8px;
}

.profile-sidebar.is-collapsed .sidebar-shell-footer-row {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	padding-bottom: 22px;
}

.profile-sidebar.is-collapsed .sidebar-shell-footer-meta {
	display: none;
}

/* Profile sidebar tooltips */
.profile-sidebar .profile-tooltip {
	position: relative;
}

/* Hide scrollbar indicator in profile sidebar (keep scroll) */
.profile-sidebar .inner.scrollbar_custom {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge Legacy */
}

.profile-sidebar .inner.scrollbar_custom::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none; /* Chrome/Safari */
}

.profile-sidebar .profile-tooltip .tooltip-content {
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	padding: 6px 10px;
	border-radius: 8px;
	background: #0f172a;
	color: #ffffff;
	font-size: 12px;
	line-height: 1.2;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
	transition: opacity 0.15s ease, transform 0.15s ease;
	transform: translateY(-50%) translateX(-4px);
	z-index: 20;
}

.profile-sidebar .profile-tooltip .tooltip-content::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: transparent #0f172a transparent transparent;
}

.profile-sidebar.is-collapsed .profile-tooltip:hover .tooltip-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

.profile-sidebar.is-collapsed .profile-tooltip.active .tooltip-content {
	color: #ffffff;
}

/* Mobile profile sidebar modal full-screen */
.menu_dashboard.is-mobile.-modal {
	width: 100vw !important;
	max-width: 100vw !important;
	height: 100vh !important;
	max-height: 100vh !important;
	border-radius: 0;
}

