@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #e05300;
  --primary-hover: #d24000;
  --primary-light: #fff3e0;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  --dark: #0f172a;
  --dark-light: #334155;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  
  --font: 'Outfit', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Auth Pages (Login / Register) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
  top: -50px;
  right: -50px;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--info);
  filter: blur(150px);
  opacity: 0.1;
  bottom: -50px;
  left: -50px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-light);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background-color: var(--bg-card);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* Dashboard / App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: 70px;
  background-color: var(--dark);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.app-sidebar.expanded {
  width: 260px;
}

.sidebar-brand {
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
  list-style: none;
  padding: 1.5rem 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-item {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-item.active .sidebar-link {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-item.active .sidebar-link {
  border-left: 4px solid var(--primary);
  background-color: rgba(234, 88, 12, 0.1);
  color: var(--primary);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
}

/* Main Content Area */
.app-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  position: relative;
  height: 70px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.app-body {
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
}

/* Dashboard Summary Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-info h4 {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.metric-info .value {
  font-size: 1.75rem;
  font-weight: 700;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.metric-icon.success { background-color: var(--success-light); color: var(--success); }
.metric-icon.danger { background-color: var(--danger-light); color: var(--danger); }
.metric-icon.info { background-color: var(--info-light); color: var(--info); }

/* Layout Panels */
.panel-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.panel-body {
  padding: 1.5rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-custom th {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}

.table-custom td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

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

/* Badges */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}

.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); }
.badge-info { background-color: var(--info-light); color: var(--info); }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  width: 100%;
  max-width: 720px;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--border);
  color: var(--dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-main);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Table Action Buttons style (premium alignment) */
.table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--dark-light);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}
.table-btn:hover {
  background-color: var(--bg-main);
  color: var(--primary);
  border-color: var(--primary);
}
.table-btn.danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-light);
}
.table-btn.danger:hover {
  background-color: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* Utility buttons */
.btn-action {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
}

/* Notification/alert alerts */
.alert-custom {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success);
  border-left-color: var(--success);
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border-left-color: var(--danger);
}

/* Split Pane for Details (Oklif style) */
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Charts container */
.chart-container {
  height: 300px;
  width: 100%;
}

/* ==========================================================================
   Responsive & Mobile Design Tokens (Vergelmesin Premium Responsive System)
   ========================================================================== */

/* Mobile Toggle Buttons */
.mobile-only-btn {
  display: none !important;
}

/* Sidebar backdrop overlay on mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  /* Show mobile menu buttons */
  .mobile-only-btn {
    display: inline-flex !important;
  }

  /* Fixed Mobile Sidebar */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Hide to the left */
    width: 280px;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .app-sidebar.active {
    left: 0;
  }

  /* Header adjustments */
  .app-header {
    padding: 0 1rem;
    height: 60px;
  }
  
  .header-title {
    font-size: 1.15rem;
  }

  .header-user {
    font-size: 0.85rem;
  }

  /* Body Padding reduction */
  .app-body {
    padding: 1rem;
  }

  /* Detail splits */
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Summary Grid items */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Modal responsive margins */
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-card {
    max-width: 100%;
  }

  /* Form filters alignment on mobile */
  .filter-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Premium Auth Design (Oklif Arayüzü Esintili Giriş Sayfası)
   ========================================================================== */

.auth-theme-bg {
  background: linear-gradient(180deg, #4b6574 0%, #688596 100%) !important;
  position: relative;
}

/* Top transparent glassmorphism navigation buttons */
.auth-top-nav {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.auth-nav-group {
  display: flex;
  gap: 12px;
}

.auth-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: white;
  transform: translateY(-2px);
}

/* Subtitle and Logo layout updates */
.auth-logo-text {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: white;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.auth-logo-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Form input custom wrapper with icons */
.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper input {
  padding-left: 2.85rem;
  padding-right: 2.85rem;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.input-icon-left {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input-icon-right {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.input-icon-right:hover {
  color: var(--primary);
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--dark-light);
}

.form-row-between label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

/* Submit Button in Slate Blue style */
.btn-submit-custom {
  background-color: #576f7f !important;
  color: white !important;
  height: 52px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(87, 111, 127, 0.2);
  transition: all 0.2s ease;
}

.btn-submit-custom:hover {
  background-color: #445967 !important;
  box-shadow: 0 6px 16px rgba(87, 111, 127, 0.35);
  transform: translateY(-1px);
}

/* Orange rounded Demo Login button */
.btn-demo-custom {
  background-color: #f97316 !important;
  color: white !important;
  font-size: 0.95rem;
  font-weight: 700;
  width: auto !important;
  padding: 0.65rem 2.25rem !important;
  border-radius: 24px !important;
  display: inline-flex !important;
  margin: 1.5rem auto 0 auto;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
  transition: all 0.2s ease;
}

.btn-demo-custom:hover {
  background-color: var(--primary) !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

/* Star labels below card */
.auth-footer-status {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 2rem;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   Mobile Cari Card List System (Oklif Arayüzü Esintili Kart Görünümü)
   ========================================================================== */

.mobile-cari-list {
  display: none;
}

@media (max-width: 768px) {
  .table-responsive {
    display: none !important; /* Hide traditional table on mobile */
  }

  .floating-add-btn {
    display: flex !important; /* Show floating add button on mobile view */
  }

  .mobile-cari-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 2rem;
    width: 100%;
  }

  .mobile-cari-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-cari-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  }

  .mobile-cari-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }

  .accent-bar {
    width: 4px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
  }
  
  .accent-bar.debit { background-color: var(--danger); }
  .accent-bar.credit { background-color: var(--success); }
  .accent-bar.zero { background-color: var(--gray); }

  .mobile-cari-title {
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
  }

  .mobile-cari-title:hover {
    text-decoration: underline;
    color: var(--primary);
  }

  .mobile-cari-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 700;
    background-color: var(--border);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .mobile-cari-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr;
    gap: 8px;
  }

  .mobile-cari-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-cari-grid-item .label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  .mobile-cari-grid-item .value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
  }

  .bakiye-val.debit { color: var(--danger) !important; }
  .bakiye-val.credit { color: var(--success) !important; }
  .bakiye-val.zero { color: var(--gray) !important; }
}

/* Floating Action Button (FAB) */
.floating-add-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  display: none; /* Hidden by default on desktop view */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
  border: none;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.floating-add-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

.floating-add-btn:active {
  transform: scale(0.95);
}

.floating-add-btn i {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Mobile Cari Detail Screen Redesign (Oklif-Inspired)
   ========================================================================== */

.mobile-cari-detail-header {
  display: none;
}

.mobile-detail-bottom-bar {
  display: none;
}

.mobile-transactions-list {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop parts on mobile detail view */
  .no-print > a {
    display: none !important;
  }
  
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .detail-grid > .panel-card:first-child {
    display: none !important; /* Hide left column (info card) on mobile */
  }

  .panel-header.no-print {
    display: none !important; /* Hide default action buttons header */
  }

  .table-responsive {
    display: none !important; /* Hide traditional table */
  }

  /* Display mobile header and footer navigation */
  .mobile-cari-detail-header {
    display: flex;
    flex-direction: column;
    background-color: #576f7f;
    color: white;
    padding: 1.25rem;
    border-radius: 0 0 16px 16px;
    margin: 0.5rem -1.5rem 1.5rem -1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .back-icon-btn, .more-icon-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .back-icon-btn:active, .more-icon-btn:active {
    background-color: rgba(255, 255, 255, 0.12);
  }

  .cari-name-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-align: center;
    flex-grow: 1;
    text-transform: uppercase;
  }

  .header-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .cari-category-label {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 600;
  }

  .cari-balance-label {
    font-size: 1.1rem;
    font-weight: 800;
  }

  .cari-balance-label.debit { color: #fee2e2; }
  .cari-balance-label.credit { color: #d1fae5; }
  .cari-balance-label.zero { color: #cbd5e1; }

  .header-toolbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 0.75rem;
  }

  .tool-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .tool-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
  }

  .tool-btn i {
    width: 20px;
    height: 20px;
  }

  /* Transactions Card View */
  .mobile-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 2rem;
  }

  .mobile-tx-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-tx-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    text-align: center;
  }

  .mobile-tx-date .day {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
  }

  .mobile-tx-date .month {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
  }

  .tx-indicator {
    width: 3px;
    height: 32px;
    border-radius: 1.5px;
    display: inline-block;
  }

  .tx-indicator.debit { background-color: var(--danger); }
  .tx-indicator.credit { background-color: var(--success); }

  .mobile-tx-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
  }

  .mobile-tx-details .description {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-tx-details .meta {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 600;
  }

  .mobile-tx-amount {
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
  }

  .mobile-tx-amount.debit { color: var(--danger); }
  .mobile-tx-amount.credit { color: var(--success); }

  /* Mobile Bottom Navigation Bar */
  .mobile-detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #576f7f;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: 0 1.5rem;
    box-sizing: border-box;
  }

  .bottom-bar-btn {
    color: white;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .bottom-bar-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  .bottom-bar-btn:active {
    background-color: rgba(255, 255, 255, 0.16);
  }

  .bottom-bar-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f97316;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    cursor: pointer;
    transform: translateY(-18px);
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bottom-bar-fab-btn:active {
    transform: translateY(-14px) scale(0.95);
  }

  .bottom-bar-fab-btn i {
    width: 24px;
    height: 24px;
  }

  /* Offset body padding to avoid floating bottom bar overlay */
  .app-body {
    padding-bottom: 85px !important;
  }
}

/* Bulk Selection CSS */
.bulk-action-bar-active {
  display: flex !important;
}

@media (max-width: 768px) {
  #bulkActionBar {
    bottom: 74px !important;
    width: 94% !important;
    padding: 10px 16px !important;
  }
}

/* Toggle visibility of selection columns based on bulk mode */
.customer-select-col, .selectAllDesktop-col {
  display: none !important;
}
.bulk-mode-active .customer-select-col {
  display: table-cell !important;
}
.bulk-mode-active .selectAllDesktop-col {
  display: table-cell !important;
}
.bulk-mode-active .mobile-checkbox-wrapper {
  display: flex !important;
}

/* Responsive visibility helper classes */
@media (max-width: 768px) {
  .desktop-only-btn {
    display: none !important;
  }
}

/* Vergelmesin Premium Mini-Sidebar Desktop System */
@media (min-width: 769px) {
  /* Default state on desktop is collapsed (70px) unless .expanded class is added */
  .app-sidebar:not(.expanded) .sidebar-brand {
    padding: 1.5rem 0;
    justify-content: center;
  }
  
  .app-sidebar:not(.expanded) .sidebar-brand img {
    margin: 0 !important;
  }
  
  .app-sidebar:not(.expanded) .sidebar-brand span,
  .app-sidebar:not(.expanded) .sidebar-link span,
  .app-sidebar:not(.expanded) .sidebar-footer span {
    display: none !important;
  }
  
  .app-sidebar:not(.expanded) .sidebar-menu {
    padding: 1.5rem 0.5rem;
  }
  
  .app-sidebar:not(.expanded) .sidebar-link {
    padding: 0.8rem 0;
    justify-content: center;
    gap: 0;
  }
  
  .app-sidebar:not(.expanded) .sidebar-footer {
    padding: 1.5rem 0.5rem;
    align-items: center;
  }
  
  .app-sidebar:not(.expanded) .sidebar-footer .btn,
  .app-sidebar:not(.expanded) .sidebar-footer .sidebar-logout {
    padding: 6px 0;
    justify-content: center;
    width: 100%;
  }
  
  .app-sidebar:not(.expanded) .sidebar-footer div {
    flex-direction: column !important;
    gap: 6px !important;
  }
}


