:root {
  --navy-blue: #002b5b;
  --ocean-blue: #1f78b4;
  --seafoam-green: #3cb3a7;
  --sunset-orange: #f28c38;
  --ocean-blue-light: #4a9ad4;
  --seafoam-green-light: #5cc9bd;
  --sunset-orange-light: #ffa558;

  /* Sidebar tokens — aligned with cl-* / bm-* pages */
  --so-sidebar-text: #475569;
  --so-sidebar-text-muted: #94a3b8;
  --so-sidebar-active: #1d4ed8;
  --so-sidebar-active-bg: rgba(37, 99, 235, 0.1);
  --so-sidebar-border: rgba(148, 163, 184, 0.22);
  --so-sidebar-width: 264px;
  --so-sidebar-collapsed: 70px;
}

/* ============================================
   GLOBAL SIDEBAR — so-sidebar
   ============================================ */

.pcoded-navbar.so-sidebar {
  background: transparent !important;
  background-image: none !important;
  color: var(--so-sidebar-text);
  border-right: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.pcoded-navbar.so-sidebar:before {
  display: none !important;
}

.pcoded-navbar.so-sidebar .navbar-wrapper {
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
  height: 100%;
}

/* Unified panel — expands with navbar on hover */
.pcoded-navbar.so-sidebar .navbar-wrapper::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 6px;
  right: 0;
  bottom: 10px;
  width: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--so-sidebar-border);
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
  z-index: 0;
  transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
  pointer-events: none;
}

.pcoded-navbar.so-sidebar.navbar-collapsed .navbar-wrapper::before {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.pcoded-navbar.so-sidebar.navbar-collapsed:hover .navbar-wrapper::before {
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.09);
  border-color: rgba(148, 163, 184, 0.28);
}

.pcoded-navbar.so-sidebar .header-logo,
.pcoded-navbar.so-sidebar .navbar-content {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
}

.pcoded-navbar.so-sidebar .header-logo {
  height: 64px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pcoded-navbar.so-sidebar .header-logo .logo.images {
  max-height: 30px;
  width: auto;
}

.pcoded-navbar.so-sidebar .mobile-menu span,
.pcoded-navbar.so-sidebar .mobile-menu span:after,
.pcoded-navbar.so-sidebar .mobile-menu span:before {
  background-color: #64748b !important;
}

.pcoded-navbar.so-sidebar .mobile-menu.on span {
  background-color: transparent !important;
}

.pcoded-navbar.so-sidebar .scroll-div.navbar-content {
  height: calc(100% - 64px);
  display: flex;
  flex-direction: column;
}

.pcoded-navbar.so-sidebar .so-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0.35rem 0 1.15rem;
}

.pcoded-navbar.so-sidebar .so-sidebar-spacer {
  flex: 1 1 auto;
  min-height: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcoded-navbar.so-sidebar .so-sidebar-user-item,
.pcoded-navbar.so-sidebar .so-sidebar-profile-item,
.pcoded-navbar.so-sidebar .so-sidebar-logout-item {
  flex-shrink: 0;
}

/* Collapsed sidebar: don't expand submenu in layout until hover */
.pcoded-navbar.so-sidebar.navbar-collapsed:not(:hover)
  .pcoded-inner-navbar
  > li.pcoded-hasmenu.pcoded-trigger
  > .pcoded-submenu {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pcoded-navbar.so-sidebar.navbar-collapsed:not(:hover) .so-sidebar-user {
  justify-content: center;
  width: 100%;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.pcoded-navbar.so-sidebar.navbar-collapsed:not(:hover) .so-sidebar-user__avatar {
  margin: 0 auto;
}

.pcoded-navbar.so-sidebar.navbar-collapsed:not(:hover) .so-sidebar-user-item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li > a {
  margin: 2px 10px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  color: var(--so-sidebar-text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.18s ease, color 0.18s ease;
  background: transparent;
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li > a > .pcoded-micon {
  width: 32px;
  height: 32px;
  margin-right: 0.65rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
  box-shadow: none;
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.active > a,
.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.pcoded-trigger > a {
  background: var(--so-sidebar-active-bg);
  color: var(--so-sidebar-active);
  box-shadow: none;
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.active > a > .pcoded-micon,
.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.pcoded-trigger > a > .pcoded-micon,
.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li > a:hover > .pcoded-micon {
  background: transparent;
  border: none;
  color: var(--so-sidebar-active);
  box-shadow: none;
  transform: none;
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li > a:hover {
  color: var(--so-sidebar-active);
  background: rgba(241, 245, 249, 0.85);
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.active:after,
.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.pcoded-trigger:after {
  display: none !important;
}

.pcoded-navbar.so-sidebar .pcoded-inner-navbar > li.pcoded-hasmenu > a:after {
  color: var(--so-sidebar-text-muted);
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
}

.pcoded-navbar.so-sidebar .pcoded-submenu {
  background: transparent !important;
  padding: 0.15rem 0 0.35rem;
}

.pcoded-navbar.so-sidebar .pcoded-submenu li > a {
  border-radius: 10px;
  margin: 2px 12px 2px 24px;
  padding: 0.45rem 0.85rem 0.45rem 2rem;
  color: var(--so-sidebar-text);
  font-size: 0.84rem;
  font-weight: 600;
  background: transparent;
}

.pcoded-navbar.so-sidebar .pcoded-submenu li > a:before {
  background-color: #93c5fd !important;
  left: 1rem;
}

.pcoded-navbar.so-sidebar .pcoded-submenu li.active > a,
.pcoded-navbar.so-sidebar .pcoded-submenu li > a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--so-sidebar-active);
}

/* Footer user block */
.pcoded-navbar.so-sidebar .so-sidebar-user-item {
  list-style: none;
  margin: 0.35rem 10px 0.15rem;
  padding: 0;
}

.pcoded-navbar.so-sidebar .so-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.pcoded-navbar.so-sidebar .so-sidebar-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcoded-navbar.so-sidebar .so-sidebar-user__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcoded-navbar.so-sidebar .so-sidebar-user__initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0.02em;
}

.pcoded-navbar.so-sidebar .so-sidebar-user__initials.is-visible {
  display: flex;
}

.pcoded-navbar.so-sidebar .so-sidebar-user__name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcoded-navbar.so-sidebar .so-sidebar-logout {
  color: #dc2626 !important;
}

.pcoded-navbar.so-sidebar .so-sidebar-logout:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.pcoded-navbar.so-sidebar .so-sidebar-logout .pcoded-micon {
  color: #dc2626 !important;
  background: transparent !important;
  border: none !important;
}

.pcoded-navbar.so-sidebar .so-sidebar-logout:hover .pcoded-micon {
  background: transparent !important;
  color: #b91c1c !important;
}

/* Collapsed: icon-only, expand on hover (theme behavior preserved) */
.pcoded-navbar.so-sidebar.navbar-collapsed .so-sidebar-user {
  justify-content: center;
  padding: 0.45rem;
  border-color: transparent;
}

.pcoded-navbar.so-sidebar.navbar-collapsed .so-sidebar-user__info {
  display: none;
}

.pcoded-navbar.so-sidebar.navbar-collapsed:hover .so-sidebar-user {
  justify-content: flex-start;
  padding: 0.55rem 0.75rem;
  border-color: rgba(148, 163, 184, 0.16);
}

.pcoded-navbar.so-sidebar.navbar-collapsed:hover .so-sidebar-user__info {
  display: block;
}

.pcoded-navbar.so-sidebar.navbar-collapsed .so-sidebar-user-item {
  margin-left: 0;
  margin-right: 0;
}

/* Disable legacy theme overlay on sidebar hover (darkens main content) */
.pcoded-navbar.so-sidebar.navbar-collapsed:hover ~ .pcoded-header:before,
.pcoded-navbar.so-sidebar.navbar-collapsed:hover ~ .pcoded-main-container:before,
.pcoded-navbar.so-sidebar.mob-open ~ .pcoded-header:before,
.pcoded-navbar.so-sidebar.mob-open ~ .pcoded-main-container:before {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

@media (max-width: 991px) {
  .pcoded-navbar.so-sidebar .navbar-wrapper::before {
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    border-right: 1px solid var(--so-sidebar-border);
    border-left: none;
    border-top: none;
    border-bottom: none;
  }
}

body:has(.pcoded-navbar.so-sidebar) {
  background: #f4f7fb;
  color: #0f172a;
}

.navContainer {
  border-bottom: none;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(31, 120, 180, 0.08);
  margin-bottom: 1.5rem;
  gap: 0.5rem;
  display: flex;
  align-items: center;
}

/* Tabs Navigation */

.nav-tabs .nav-item {
  margin-bottom: 0;
}

/* Back Button */
.back-button-item {
  padding-right: 1rem;
  border-right: 2px solid #e8eaed;
}

.nav-link.back-button {
  background: transparent;
  border: 1.5px solid #cbd5e0;
  color: #4a5568;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-link.back-button:hover {
  background: #e8f2fc;
  border-color: var(--ocean-blue);
  color: var(--ocean-blue);
  transform: translateX(4px);
}

.nav-link.back-button i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nav-link.back-button:hover i {
  transform: translateX(-3px);
}

.nav-tabs .nav-link {
  color: #718096;
  border: none;
  background: transparent;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

.nav-tabs .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ocean-blue) 0%,
    var(--ocean-blue-light) 100%
  );
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.nav-tabs .nav-link:hover {
  color: var(--ocean-blue);
  background: rgba(31, 120, 180, 0.08);
}

.nav-tabs .nav-link:hover::before {
  width: 80%;
}

.nav-tabs .nav-link.active,
.nav-tabs a[href*="/overview"].active,
.nav-tabs a[href*="/checklists"].active,
.nav-tabs a[href*="/documents"].active,
.nav-tabs a[href*="/periodic"].active,
.nav-tabs a[href*="/finance"].active {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--ocean-blue) 0%,
    var(--ocean-blue-light) 100%
  );
  box-shadow: 0 4px 12px rgba(31, 120, 180, 0.25);
}

.nav-tabs .nav-link.active::before,
.nav-tabs a[href*="/overview"].active::before,
.nav-tabs a[href*="/checklists"].active::before,
.nav-tabs a[href*="/documents"].active::before,
.nav-tabs a[href*="/periodic"].active::before,
.nav-tabs a[href*="/finance"].active::before {
  width: 0;
}

.nav-tabs .nav-link i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.nav-tabs .nav-link:hover i,
.nav-tabs .nav-link.active i,
.nav-tabs a.active i {
  transform: scale(1.1);
}

/* Tab badges for counts */
.nav-link .badge {
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.nav-link.active .badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Tab Content */
.tab-content-wrapper {
  margin-top: 0;
}

.tab-content-container {
  background: transparent;
  padding: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e8eaed;
}

.section-header h4 {
  margin: 0;
  color: #2d3748;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h5 {
  margin: 0;
  color: #2d3748;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   MODERN FORM ELEMENTS - GLOBAL STYLES
   ============================================ */

/* Modern Buttons - Global */
.btn-primary-modern,
.btn.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background: linear-gradient(
    135deg,
    var(--ocean-blue) 0%,
    var(--ocean-blue-light) 100%
  );
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(31, 120, 180, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-modern:hover,
.btn.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(31, 120, 180, 0.35);
  background: linear-gradient(
    135deg,
    var(--navy-blue) 0%,
    var(--ocean-blue) 100%
  );
  color: #fff;
}

.btn-danger-modern,
.btn.btn-danger,
button.btn-danger,
input[type="submit"].btn-danger {
  background: transparent;
  border: 1.5px solid #ffcdd2;
  color: #d32f2f;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-danger-modern:hover,
.btn.btn-danger:hover,
button.btn-danger:hover,
input[type="submit"].btn-danger:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-success-modern,
.btn.btn-success,
button.btn-success,
input[type="submit"].btn-success {
  background: linear-gradient(
    135deg,
    var(--seafoam-green) 0%,
    var(--seafoam-green-light) 100%
  );
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(60, 179, 167, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-success-modern:hover,
.btn.btn-success:hover,
button.btn-success:hover,
input[type="submit"].btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(60, 179, 167, 0.35);
  background: linear-gradient(135deg, #359888 0%, var(--seafoam-green) 100%);
  color: #fff;
}

/* Modern Input Fields - Global */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
textarea.form-control,
textarea {
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #2d3748;
  background: #fff;
  transition: all 0.25s ease;
  font-weight: 500;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea.form-control:focus,
textarea:focus {
  outline: none;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(31, 120, 180, 0.1);
  background: #fff;
}

.form-control:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
textarea.form-control:hover,
textarea:hover {
  border-color: var(--ocean-blue-light);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

/* Modern Select - Global (applies to all select elements) */
select,
select.form-control,
select.form-control-sm,
select.form-control-lg {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f78b4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: #2d3748;
  background-color: #fff;
  transition: all 0.25s ease;
  font-weight: 500;
  cursor: pointer;
  min-height: 2.5rem;
  width: 100%;
}

/* Arrow sadece select elementinde görünsün, option'larda değil */
select option {
  background-image: none !important;
  padding-right: 1rem;
}

select:hover:not(:focus),
select.form-control:hover:not(:focus),
select.form-control-sm:hover:not(:focus),
select.form-control-lg:hover:not(:focus) {
  border-color: var(--ocean-blue-light);
  background-color: #f9fcff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a9ad4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

select:focus,
select.form-control:focus,
select.form-control-sm:focus,
select.form-control-lg:focus {
  outline: none;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(31, 120, 180, 0.1);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f78b4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

/* Small select variant */
select.form-control-sm {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 0.75rem;
  font-size: 0.85rem;
  min-height: 2rem;
  padding-right: 2rem;
  background-size: 10px;
  background-position: right 0.5rem center;
}

/* Large select variant */
select.form-control-lg {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-left: 1.25rem;
  font-size: 1rem;
  min-height: 3rem;
  padding-right: 3rem;
  background-size: 14px;
  background-position: right 1rem center;
}

/* Disabled select state */
select:disabled,
select.form-control:disabled,
select[disabled] {
  background-color: #f7fafc;
  border-color: #e2e8f0;
  color: #a0aec0;
  cursor: not-allowed;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0aec0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Select option styling - arrow görünmesin */
select option {
  padding: 0.5rem 1rem;
  background: #fff !important;
  color: #2d3748;
  background-image: none !important;
  padding-right: 1rem;
}

select option:hover,
select option:focus {
  background: #f9fcff !important;
}

select option:checked,
select option:selected {
  background: var(--ocean-blue) !important;
  color: #fff;
}

/* Select optgroup styling */
select optgroup {
  font-weight: 600;
  color: #2d3748;
  padding: 0.5rem 0;
  background: #fff !important;
  background-image: none !important;
}

select optgroup option {
  font-weight: 400;
  padding-left: 1.5rem;
  background-image: none !important;
}

/* Modern Tables */
.table-modern {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(31, 120, 180, 0.08);
  background: white;
  margin-top: 1.5rem;
  width: 100%;
}

.table-modern thead {
  background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f6 100%);
}

.table-modern thead th {
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  color: var(--navy-blue);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.25rem 0.75rem;
  border: none;
  border-bottom: 2px solid var(--ocean-blue);
  position: relative;
}

.table-modern thead th:first-child {
  border-top-left-radius: 12px;
}

.table-modern thead th:last-child {
  border-top-right-radius: 12px;
}

.table-modern thead td {
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #e8eaed;
}

.table-modern tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(31, 120, 180, 0.08);
}

.table-modern tbody tr:hover {
  background: rgba(31, 120, 180, 0.03);
}

.table-modern tbody td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(31, 120, 180, 0.08);
  vertical-align: middle;
  font-size: 0.9rem;
  color: #4a5568;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* Table Action Buttons */
.table-modern .btn {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.table-modern .btn-outline-primary {
  border-color: var(--ocean-blue-light);
  color: var(--ocean-blue);
}

.table-modern .btn-outline-primary:hover {
  background: var(--ocean-blue);
  border-color: var(--ocean-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(31, 120, 180, 0.2);
}

.table-modern .btn-outline-warning {
  border-color: var(--sunset-orange-light);
  color: var(--sunset-orange);
}

.table-modern .btn-outline-warning:hover {
  background: var(--sunset-orange);
  border-color: var(--sunset-orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(242, 140, 56, 0.2);
}

.table-modern .btn-outline-danger {
  border-color: #ffcdd2;
  color: #d32f2f;
}

.table-modern .btn-outline-danger:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

/* Badges */
.badge-modern {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

.badge-public {
  background: #d1f4e8;
  color: #0d7a5f;
}

.badge-private {
  background: #ffeaa7;
  color: #856404;
}

.badge-status {
  background: #e3f2fd;
  color: var(--ocean-blue);
}

/* Modal Improvements */
.modal-modern .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-modern .modal-header {
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  border-bottom: 2px solid #e8eaed;
  padding: 1.5rem;
}

.modal-modern .modal-title {
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-modern .modal-title i {
  color: var(--ocean-blue);
  font-size: 1.3rem;
}

.modal-modern .modal-body {
  padding: 1.5rem;
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-modern .modal-footer {
  background: #f8f9fc;
  border-top: 2px solid #e8eaed;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.modal-modern .btn {
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal-modern .btn-secondary {
  background: #e8eaed;
  border: none;
  color: #4a5568;
}

.modal-modern .btn-secondary:hover {
  background: #cbd5e0;
  color: #2d3748;
}

.modal-modern .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.modal-modern .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
}

/* Checkbox Styling */
.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: var(--ocean-blue);
  border-color: var(--ocean-blue);
}

.form-check-input:focus {
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(31, 120, 180, 0.1);
}

/* Date Display */
.date-display {
  font-family: "Monaco", "Courier New", monospace;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Overview Main Row - Equal Heights */
.overview-main-row {
  align-items: stretch;
}

.overview-main-row > div {
  display: flex;
  flex-direction: column;
}

.accordion-button {
  background: none !important;
}
.accordion-button:focus {
  box-shadow: none !important;
}
.cbp_tmtimeline > li .cbp_tmtime span:first-child {
  font-size: 110% !important;
  color: #999 !important;
}
.nav-pills > li i {
  display: inline-block;
  font-size: 150%;
  padding: 0;
  margin-right: 4px;
}
.d-flex {
  display: flex;
  align-items: stretch;
}
.borderRadius {
  border-radius: 8px;
}
.DashCard {
  border-radius: 8px;
}
.DashCard.card .card-footer {
  border-radius: 0 0 8px 8px;
}

.nav-link {
  padding: 20px 40px;
}

.d-flex {
  display: flex;
  align-items: stretch;
}
.borderRound {
  border-radius: 8px;
}
.DashCard {
  border-radius: 8px;
}
.DashCard.card .card-footer {
  border-radius: 0 0 8px 8px;
}

.nav-link {
  padding: 20px 40px;
}

.DocLinkContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* Tüm öğeleri tepeden hizala */
  gap: 48px; /* Öğeler arasına boşluk ekle */
}

.DocLink {
  display: inline-block;
  text-align: center;
  position: relative;
  width: 100px; /* Belirli bir genişlik ayarlayın */
}

.DocLinkIcon {
  font-size: 48px;
  color: #333 !important;
}

.DocLinkName {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* 3 satırı geçmesin */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.DocLinkIcon {
  font-size: 48px;
  color: #333;
}

.DocLinkName {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.DocLinkControls {
  display: none; /* Başlangıçta görünmez */
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  z-index: 9999;
}

.DocLinkControls .filename {
  margin-bottom: 16px;
  font-size: 12px;
  color: #333;
  word-break: break-all; /* Uzun dosya adlarını kır */
}
.DocLinkControls .DocLinkButtons {
  display: flex;
  gap: 8px;
  align-items: center; /* İçerikleri ortala */
}
.DocLinkControls a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
}

.DocLinkControls a.delete:hover {
  color: #dc3545;
}
.DocLinkControls a.edit:hover {
  color: #ffc107;
}
.DocLinkControls a.info:hover {
  color: #007bff;
}
.DocLinkControls a.view:hover {
  color: #28a745;
}
.DocLinkControls a:hover {
  color: #000;
}

.DocLink:hover .DocLinkControls {
  display: block; /* Hover yapıldığında görünür */
}

.proj-t-card .pt-badge {
  font-size: 90%;
}

.boatGalleryImage {
  width: 200px;
  height: 200px;
  position: relative;
  text-align: center;
  border: solid 1px #ccc;
}

@media (max-width: 600px) {
  .boatGalleryImage {
    width: 100%;
    height: 200px;
  }
}

.boatGalleryImage input[type="checkbox"] {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
}

.boatGalleryImage label {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #fff;
  padding: 2px 5px;
  border: 1px solid #ccc;
  z-index: 1;
}

.boatGalleryImage img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* task manager */
.task-manager-body {
  margin-top: 16px;
}
.group {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 32px;
  padding: 10px;
  background-color: #f9f9f9;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-controls {
  margin-left: 16px;
  display: flex;
  gap: 4px;
}

.group-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}
.task-container {
  padding-top: 16px;
}
.task {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
  padding: 8px;
  background-color: #fff;
  gap: 8px;
}

.dragging {
  opacity: 0.5;
}
/* task manager */

.checkboxBig {
  width: 2em;
  height: 2em;
}

@media (max-width: 576px) {
  .document-item {
    display: block !important;
    width: 100% !important;
  }
}

@media only screen and (max-width: 991px) {
  .pcoded-header.headerpos-fixed ~ .pcoded-main-container {
    padding-top: 60px !important;
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(1px);
  z-index: 10900;
  pointer-events: none;
  transition: opacity 120ms ease-in-out;
  opacity: 0;
}

.loading-overlay.is-visible {
  display: flex;
  pointer-events: all;
  opacity: 1;
}

.loading-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  outline: none;
}

.loading-overlay__animation {
  width: 160px;
  max-width: 60vw;
  aspect-ratio: 1 / 1;
}

.loading-overlay__sr-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   BOAT PAGE STYLES - GLOBAL
   ============================================ */

/* Overview Card */
.overview-card {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(31, 120, 180, 0.08);
  border: 1px solid #e8eaed;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  flex: 1;
}

.overview-card:hover {
  box-shadow: 0 4px 20px rgba(31, 120, 180, 0.12);
  transform: translateY(-2px);
}

.overview-card .card-body {
  padding: 1.5rem;
}

/* Map Card Specific */
.map-card {
  min-height: 450px;
  height: 100%;
}

/* Info Card Specific */
.info-card {
  display: flex;
  flex-direction: column;
}

/* Image Zoom Container - In-place zoom */
.image-zoom-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  background: #f7f9fc;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boat-plan-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease;
  transform-origin: center;
}

.image-zoom-container.zoomed {
  cursor: zoom-out;
  box-shadow: 0 8px 24px rgba(31, 120, 180, 0.15);
}

.image-zoom-container.zoomed .boat-plan-image {
  transform: scale(2);
}

.overview-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f7f9fc;
  border-radius: 8px;
  border-left: 3px solid var(--ocean-blue);
}

.overview-info-item i {
  color: var(--ocean-blue);
  font-size: 1.2rem;
}

.overview-info-item .label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.overview-info-item .value {
  font-size: 1.1rem;
  color: #2d3748;
  font-weight: 700;
}

/* Boat Specifications Accordion */
.specifications-card {
  overflow: visible;
}

.specifications-header {
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e8eaed;
}

.specifications-header:hover {
  background: linear-gradient(135deg, #e8f2fc 0%, #f0f9ff 100%);
}

.spec-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spec-header-content i {
  font-size: 1.5rem;
  color: var(--ocean-blue);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e8f2fc 0%, #d4ebf7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-header-content h5 {
  margin: 0;
  font-weight: 700;
  color: var(--navy-blue);
  font-size: 1.15rem;
}

.spec-toggle-btn {
  background: transparent;
  border: 1.5px solid #cbd5e0;
  color: #718096;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spec-toggle-btn:hover {
  background: #e8f2fc;
  border-color: var(--ocean-blue);
  color: var(--ocean-blue);
}

.spec-toggle-btn i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.specifications-card.open .spec-toggle-btn i {
  transform: rotate(180deg);
}

.specifications-body {
  padding: 1.5rem;
  background: #fafbfc;
  border-radius: 0 0 12px 12px;
  transition: all 0.3s ease;
  max-height: 2000px;
  overflow: hidden;
}

.specifications-body.collapsed {
  max-height: 0;
  padding: 0 1.5rem;
}

/* Specification Sections */
.spec-section {
  margin-bottom: 2rem;
}

.spec-section:last-child {
  margin-bottom: 0;
}

.spec-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8eaed;
}

.spec-section-header i {
  font-size: 1.2rem;
  color: var(--ocean-blue);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e8f2fc 0%, #d4ebf7 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-section-header h6 {
  margin: 0;
  font-weight: 700;
  color: #2d3748;
  font-size: 1.05rem;
}

/* Generic Data - Table Style */
.boat-data-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
}

.boat-data-row {
  display: contents;
}

.boat-data-row .data-label {
  padding: 0.9rem 1.25rem;
  background: #f7f9fc;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
  border-bottom: 1px solid #e8eaed;
  border-right: 1px solid #e8eaed;
}

.boat-data-row .data-value {
  padding: 0.9rem 1.25rem;
  background: #fff;
  color: #2d3748;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid #e8eaed;
}

.boat-data-row:last-child .data-label,
.boat-data-row:last-child .data-value {
  border-bottom: none;
}

.data-unit {
  color: #718096;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

/* Boolean Data - Checklist Style */
.boat-data-boolean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.boat-data-boolean-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.boat-data-boolean-item.checked {
  background: #f0fdf4;
  border-color: var(--seafoam-green);
}

.boat-data-boolean-item:not(.checked) {
  opacity: 0.5;
}

.boat-data-boolean-item i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.boat-data-boolean-item.checked i {
  color: var(--seafoam-green);
}

.boat-data-boolean-item:not(.checked) i {
  color: #cbd5e0;
}

.boat-data-boolean-item span {
  font-size: 0.9rem;
  color: #2d3748;
  font-weight: 600;
}

/* Optional Data - Badge Style */
.boat-data-optional-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.boat-data-optional-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border: 1px solid #ffd966;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.boat-data-optional-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 140, 56, 0.15);
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
}

.boat-data-optional-item i {
  font-size: 0.95rem;
  color: var(--sunset-orange);
}

.boat-data-optional-item span {
  font-size: 0.9rem;
  color: #856404;
  font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(31, 120, 180, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #a0aec0;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

/* Finance Summary Cards */
.finance-summary-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(31, 120, 180, 0.08);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(31, 120, 180, 0.1);
}

.finance-summary-card:hover {
  box-shadow: 0 4px 20px rgba(31, 120, 180, 0.15);
  transform: translateY(-2px);
}

.finance-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--ocean-blue),
    var(--ocean-blue-light)
  );
  color: white;
  flex-shrink: 0;
}

.finance-info {
  flex: 1;
}

.finance-info h6 {
  margin: 0 0 0.5rem 0;
  color: var(--navy-blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finance-info h2 {
  margin: 0 0 0.25rem 0;
  color: var(--navy-blue);
  font-size: 1.75rem;
  font-weight: 700;
}

.finance-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Finance card state colors */
.finance-summary-card.finance-positive .finance-icon {
  background: linear-gradient(135deg, #13bd8a, #0f976e);
}

.finance-summary-card.finance-positive .finance-info h2 {
  color: #13bd8a;
}

.finance-summary-card.finance-negative .finance-icon {
  background: linear-gradient(135deg, #dc3545, #b71c1c);
}

.finance-summary-card.finance-negative .finance-info h2 {
  color: #dc3545;
}

.finance-summary-card.finance-neutral .finance-icon {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
}

.finance-summary-card.finance-neutral .finance-info h2 {
  color: #757575;
}

/* Boat Images Section */
.boat-images-section {
  margin-bottom: 2rem;
}

.boat-cover-container {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(31, 120, 180, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.boat-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.boat-cover-container:hover .boat-cover-image {
  transform: scale(1.02);
}

/* Boat Plan Section */

.boat-plan-section .image-zoom-container {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(31, 120, 180, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.boat-plan-section .boat-plan-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.boat-plan-section .image-zoom-container:hover .boat-plan-image {
  transform: scale(1.02);
}

/* Boat Info Section */
.boat-info-section {
  padding-top: 1rem;
}

/* Overview Stats Grid */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
  justify-content: stretch;
}

.overview-stat-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border-left: 3px solid var(--ocean-blue);
  box-shadow: 0 2px 8px rgba(31, 120, 180, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  flex: 1;
  min-height: 60px;
}

.overview-stat-card:hover {
  box-shadow: 0 4px 16px rgba(31, 120, 180, 0.15);
  transform: translateY(-2px);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--ocean-blue),
    var(--ocean-blue-light)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-blue);
  line-height: 1.2;
}

/* Chart Container Fix */
.overview-card canvas {
  max-height: 300px !important;
  height: 300px !important;
}

.overview-card .card-body {
  position: relative;
  overflow: hidden;
}

/* Finance Chart Specific */
#financeYearBarChart {
  max-height: 300px !important;
  height: 300px !important;
  width: 100% !important;
}

/* Responsive - Boat Styles */
@media (max-width: 768px) {
  .overview-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .overview-stat-card {
    padding: 0.75rem;
    min-height: 50px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .boat-data-table {
    grid-template-columns: 1fr;
  }

  .boat-data-boolean-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .map-card {
    min-height: 350px;
  }

  .overview-main-row > div {
    flex-direction: row;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  /* Image zoom mobile */
  .image-zoom-container {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 576px) {
  .overview-stats-grid {
    grid-template-columns: 1fr;
  }

  .boat-data-table {
    grid-template-columns: 1fr;
  }

  .boat-data-row .data-label,
  .boat-data-row .data-value {
    border-right: none;
  }

  .boat-data-boolean-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 300px;
  }
}
