/* HAN DESIGN - Özelleştirmeler (Tailwind CDN ile birlikte kullanılır) */
/* Varsayılan font ailesi ve yazı tipi yumuşatma */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Dark/Light Tema Değişkenleri */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-gradient-from: #f0f9ff;
  --bg-gradient-via: #ffffff;
  --bg-gradient-to: #ecfeff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e5e7eb;
  --border-light: #f1f5f9;
  --card-bg: rgba(255,255,255,0.95);
  --card-shadow: rgba(0,0,0,0.05);
  --input-bg: rgba(255,255,255,0.9);
  --input-border: rgb(203 213 225);
  --table-header-bg: #e0f2fe;
  --table-odd-bg: #ffffff;
  --table-even-bg: #f8fafc;
  --brand-color: #0ea5e9;
  --brand-dark: #0284c7;
  --accent-color: #06b6d4;
  --success-color: #16a34a;
  --success-dark: #15803d;
  --danger-color: #dc2626;
  --scrollbar-thumb: #bae6fd;
  --scrollbar-track: #e0f2fe;
  --sidebar-bg: rgba(255,255,255,0.98);
  --overlay-bg: rgba(2,6,23,0.35);
  --watermark-opacity: 0.12;
  --icon-color: #0f172a;
  --logo-filter: none;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-gradient-from: #0f172a;
  --bg-gradient-via: #1e293b;
  --bg-gradient-to: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-light: #1e293b;
  --card-bg: rgba(30,41,59,0.95);
  --card-shadow: rgba(0,0,0,0.3);
  --input-bg: rgba(30,41,59,0.9);
  --input-border: #475569;
  --table-header-bg: #1e293b;
  --table-odd-bg: #1e293b;
  --table-even-bg: #334155;
  --brand-color: #38bdf8;
  --brand-dark: #0ea5e9;
  --accent-color: #22d3ee;
  --success-color: #22c55e;
  --success-dark: #16a34a;
  --danger-color: #ef4444;
  --scrollbar-thumb: #475569;
  --scrollbar-track: #1e293b;
  --sidebar-bg: rgba(30,41,59,0.98);
  --overlay-bg: rgba(0,0,0,0.6);
  --watermark-opacity: 0.05;
  --icon-color: #f1f5f9;
  --logo-filter: brightness(0) invert(1);
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-from), var(--bg-gradient-via), var(--bg-gradient-to));
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease, margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}

/* Sidebar açıldığında body'yi kaydır - Push Layout */
body.sidebar-open {
  margin-left: 280px;
}

@media (max-width: 640px) {
  body.sidebar-open {
    margin-left: 0;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  body.sidebar-open {
    margin-left: 260px;
  }
}

/***** Form odak stilleri *****/
.input-focus:focus { outline: none; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.20); }

/***** Bootstrap benzeri sınıflar için modern görünüm (Tailwind ile birlikte) *****/
.form-control, .form-select {
  display: block;
  width: 100%;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-primary);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px var(--card-shadow);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.20), 0 4px 6px var(--card-shadow);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 0.75rem;
  padding: 0.625rem 1.125rem;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px var(--card-shadow);
  cursor: pointer;
  border: none;
  min-height: 2.5rem;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--card-shadow);
  }
}
.btn:active {
  transform: translateY(0);
  opacity: 0.9;
}
.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  border-radius: 0.625rem;
  min-height: 2.25rem;
}

@media (max-width: 640px) {
  .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    width: 100%;
  }
  .btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }
  .w-full {
    width: 100% !important;
  }
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-color), var(--accent-color));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-color));
}
.btn-success {
  background: linear-gradient(135deg, var(--success-color), #22c55e);
  color: #fff;
}
.btn-success:hover {
  background: linear-gradient(135deg, var(--success-dark), var(--success-color));
}
.btn-outline-secondary {
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
}
.btn-outline-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-color);
}
.btn-outline-dark {
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
}
.btn-outline-dark:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}
.btn-outline-danger {
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
  background: var(--bg-primary);
}
.btn-outline-danger:hover {
  background: var(--danger-color);
  color: #fff;
}

.alert {
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 4px var(--card-shadow);
  border-left: 4px solid;
}
@media (max-width: 640px) {
  .alert {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
  }
}
.alert-danger {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}
[data-theme="dark"] .alert-danger {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}
.alert-success {
  background: #ecfeff;
  border-color: #16a34a;
  color: #155e75;
}
[data-theme="dark"] .alert-success {
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
}
.alert-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}
[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: 0 8px 24px var(--card-shadow);
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .card {
    border-radius: 1rem;
  }
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  background: var(--table-header-bg);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  padding: 0.5rem 0.75rem;
  position: sticky;
  top: 0;
  border-bottom: 2px solid var(--brand-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.table tbody td {
  padding: 0.375rem 0.75rem;
  border-top: 1px solid var(--border-color);
  transition: background 0.2s ease;
}
.table tbody tr:hover {
  background: var(--bg-secondary) !important;
}
.table-striped tbody tr:nth-child(odd) {
  background: var(--table-odd-bg);
}
.table-striped tbody tr:nth-child(even) {
  background: var(--table-even-bg);
}
.align-middle td, .align-middle th {
  vertical-align: middle;
}

.table-input { max-width: 160px; }

/* Responsive table wrapper compatibility */
.table-responsive, .table-wrap {
  overflow: auto;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--border-color);
}

/***** Form label *****/
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: 0.025em;
}

/***** Küçük yardımcılar *****/
.text-muted {
  color: var(--text-muted);
}
.brand-gradient {
  background: linear-gradient(90deg, var(--brand-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track);
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

/* Basic Bootstrap-like utility bridges to keep minimal HTML changes working */
.d-flex { display: flex; }
.flex-grow-1 { flex: 1 1 auto; }
.max-w-7xl {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
}
@media (max-width: 640px) {
  .max-w-7xl {
    padding-top: 5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.gap-2 { gap: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.d-inline { display: inline; }
.d-grid { display: grid; }
.w-100 { width: 100%; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }

/* Grid row/cols used in pages */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
}
.col-6 {
  flex: 0 0 calc(50% - 0.25rem);
  max-width: calc(50% - 0.25rem);
  min-width: 0;
}

@media (max-width: 767px) {
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 calc(16.666% - 0.45rem);
    max-width: calc(16.666% - 0.45rem);
    min-width: 0;
  }
  .col-md-3 {
    flex: 0 0 calc(25% - 0.375rem);
    max-width: calc(25% - 0.375rem);
    min-width: 0;
  }
  .col-md-4 {
    flex: 0 0 calc(33.333% - 0.33rem);
    max-width: calc(33.333% - 0.33rem);
    min-width: 0;
  }
  .col-md-5 {
    flex: 0 0 calc(41.666% - 0.29rem);
    max-width: calc(41.666% - 0.29rem);
    min-width: 0;
  }
  .col-md-6 {
    flex: 0 0 calc(50% - 0.25rem);
    max-width: calc(50% - 0.25rem);
    min-width: 0;
  }
  .col-md-7 {
    flex: 0 0 calc(58.333% - 0.21rem);
    max-width: calc(58.333% - 0.21rem);
    min-width: 0;
  }
  .d-md-block { display: block; }
  .d-md-table-cell { display: table-cell; }
}

/* Misc utilities */
.d-none { display: none; }
.g-2 { gap: 0.5rem; }
.g-3 { gap: 0.75rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }

/* Mobil responsive yardımcılar */
@media (max-width: 640px) {
  .d-flex,
  .flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .gap-2 {
    gap: 0.75rem;
  }
  .justify-content-between {
    justify-content: flex-start;
  }
  .align-items-end {
    align-items: stretch;
  }
}

/* Mobilde sayısal girişlerin (miktar, birim fiyat) tam görünmesi için genişlik uyarlamaları */
.table td input[inputmode="decimal"],
.table td input[type="number"],
.table td input.table-input,
.table td .table-input {
  width: auto !important;
  max-width: none !important;
  min-width: 18ch;
}

/* Tablo responsive düzenlemeleri */
@media (max-width: 640px) {
  .table {
    font-size: 0.8125rem;
  }
  .table thead th {
    padding: 0.375rem 0.375rem;
    font-size: 0.625rem;
  }
  .table tbody td {
    padding: 0.25rem 0.375rem;
  }
  .table td,
  .table th {
    white-space: nowrap;
  }
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  /* Tablo dışındaki sayısal inputlar */
  input[inputmode="decimal"],
  input[type="number"] {
    min-width: 14ch;
    font-size: 1rem;
  }
  /* Form kontrollerinin boyutu */
  .form-control,
  .form-select {
    font-size: 1rem;
    padding: 0.625rem 0.75rem;
  }
}

/* --- Sidebar ve Logo Su Baskısı --- */
/* Sayfa arka planına düşük opaklıkta logolar yerleştir (tüm sayfalarda) */
@media screen {
  /* Logo 1 - Sağ alt köşe (ana logo) */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('handesign.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: min(35vw, 450px);
    opacity: var(--watermark-opacity);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
    z-index: 0;
    filter: var(--logo-filter);
  }
  /* Logo 2 - Sol üst köşe */
  body::after {
    content: '';
    position: fixed;
    top: 10%;
    left: 5%;
    width: min(25vw, 300px);
    height: min(25vw, 300px);
    background-image: url('handesign.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: calc(var(--watermark-opacity) * 0.6);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
    z-index: 0;
    filter: var(--logo-filter);
  }
  /* Logo 3 - Orta merkez (büyük ve çok soluk) */
  .max-w-7xl::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(60vw, 700px);
    height: min(60vw, 700px);
    background-image: url('handesign.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: calc(var(--watermark-opacity) * 0.4);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
    z-index: 0;
    filter: var(--logo-filter);
  }
  /* Logo 4 - Sağ üst köşe */
  .max-w-7xl::after {
    content: '';
    position: fixed;
    top: 15%;
    right: 8%;
    width: min(20vw, 250px);
    height: min(20vw, 250px);
    background-image: url('handesign.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: calc(var(--watermark-opacity) * 0.5);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
    z-index: 0;
    transform: rotate(15deg);
    filter: var(--logo-filter);
  }
}
/* Mobilde logoları küçült ve daha az görünür yap */
@media (max-width: 640px) {
  body::before {
    background-size: min(50vw, 300px);
    opacity: calc(var(--watermark-opacity) * 0.5);
  }
  body::after {
    width: min(35vw, 200px);
    height: min(35vw, 200px);
    opacity: calc(var(--watermark-opacity) * 0.4);
    top: 8%;
    left: 3%;
  }
  .max-w-7xl::before {
    width: min(70vw, 400px);
    height: min(70vw, 400px);
    opacity: calc(var(--watermark-opacity) * 0.25);
  }
  .max-w-7xl::after {
    width: min(30vw, 180px);
    height: min(30vw, 180px);
    opacity: calc(var(--watermark-opacity) * 0.35);
    top: 12%;
    right: 5%;
  }
}

@media print {
  body::before,
  body::after,
  .max-w-7xl::before,
  .max-w-7xl::after {
    display: none !important;
  }
}

/* Navbar logotype görseli */
.nav-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px var(--card-shadow);
  background-color: var(--bg-primary);
  padding: 0.25rem;
  transition: all 0.2s ease;
  filter: var(--logo-filter);
}
.nav-logo:hover {
  transform: scale(1.05);
}
.nav-logo-lg {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  filter: var(--logo-filter);
}

/* Sol açılır kapanır sidebar - Şeffaf Tasarım */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(229, 231, 235, 0.5);
  padding: 1.5rem;
  padding-top: 5rem;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .sidebar {
  background: rgba(30, 41, 59, 0.75);
  border-right-color: rgba(51, 65, 85, 0.5);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}
.sidebar.open {
  transform: translateX(0);
}
/* Hamburger button - Şeffaf Tasarım */
#btn-sidebar {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(229, 231, 235, 0.4);
  color: var(--icon-color);
}
#btn-sidebar svg {
  width: 20px;
  height: 20px;
  stroke: var(--icon-color);
}
[data-theme="dark"] #btn-sidebar {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.4);
}
#btn-sidebar:hover {
  background: rgba(255, 255, 255, 0.8) !important;
}
[data-theme="dark"] #btn-sidebar:hover {
  background: rgba(30, 41, 59, 0.8) !important;
}
.sidebar.open ~ div #btn-sidebar,
body:has(.sidebar.open) #btn-sidebar {
  left: calc(280px + 1rem);
}

/* Mobil için buton düzenlemeleri */
@media (max-width: 640px) {
  #btn-sidebar {
    left: 0.5rem;
    top: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  #btn-sidebar svg {
    width: 18px;
    height: 18px;
  }
  .sidebar.open ~ div #btn-sidebar,
  body:has(.sidebar.open) #btn-sidebar {
    left: calc(85vw + 0.5rem);
    max-left: calc(300px + 0.5rem);
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .sidebar.open ~ div #btn-sidebar,
  body:has(.sidebar.open) #btn-sidebar {
    left: calc(260px + 1rem);
  }
}
.sidebar .title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}
.sidebar .muted {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}
.sidebar a:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
  box-shadow: 0 2px 4px var(--card-shadow);
}
.sidebar hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 40;
  backdrop-filter: blur(2px);
}

/* Masaüstünde overlay yok - Push layout var */
@media (min-width: 641px) {
  .sidebar-overlay {
    display: none;
  }
}

/* Mobilde overlay göster */
@media (max-width: 640px) {
  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 85vw;
    max-width: 300px;
  }
  .sidebar .title {
    font-size: 1rem;
  }
  .sidebar a {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .sidebar {
    width: 260px;
  }
}

@media (min-width: 1024px) {
  .sidebar { width: 280px; }
}


/* Dropdown (details/summary) stilleri */
details.dropdown {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--card-shadow);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}
details.dropdown:hover {
  box-shadow: 0 4px 8px var(--card-shadow);
}
details.dropdown + details.dropdown {
  margin-top: 0.75rem;
}
details.dropdown > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}
details.dropdown > summary > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details.dropdown > summary > span svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-color);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  details.dropdown > summary {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
  details.dropdown > summary > span {
    gap: 0.375rem;
  }
  details.dropdown > summary > span svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  details.dropdown .dropdown-body {
    padding: 0.875rem 1rem;
  }
}
details.dropdown > summary:hover {
  background: var(--bg-secondary);
}
details.dropdown > summary::-webkit-details-marker {
  display: none;
}
details.dropdown > summary::after {
  content: '\25BC';
  font-size: .875rem;
  color: var(--brand-color);
  transition: transform .2s ease;
  margin-left: auto;
}
details.dropdown[open] > summary::after {
  transform: rotate(180deg);
}
details.dropdown .dropdown-body {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 12px var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 16px var(--card-shadow);
}
.theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-color);
  transition: all 0.3s ease;
}
.theme-toggle:hover svg {
  transform: rotate(20deg);
}

/* Mobil için tema toggle */
@media (max-width: 640px) {
  .theme-toggle {
    right: 0.5rem;
    top: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Print adjustments */
@media print {
  .theme-toggle {
    display: none !important;
  }
}
