/* -------------------------------------------------------------------------- */
/* Bank Account Management System - Styles (Dark Glassmorphism Theme)          */
/* Single-Line Table + 10 Color Swatches + 7-Day Expiration Alert System      */
/* -------------------------------------------------------------------------- */

:root {
  /* Color Palette */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.8);
  --bg-card-hover: rgba(28, 39, 64, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Status Colors */
  --status-active-bg: rgba(16, 185, 129, 0.15);
  --status-active-text: #10b981;
  --status-active-border: rgba(16, 185, 129, 0.3);
  
  --status-claim-bg: rgba(245, 158, 11, 0.15);
  --status-claim-text: #f59e0b;
  --status-claim-border: rgba(245, 158, 11, 0.3);
  
  --status-suspend-bg: rgba(239, 68, 68, 0.15);
  --status-suspend-text: #ef4444;
  --status-suspend-border: rgba(239, 68, 68, 0.3);

  /* Ownership Type Colors */
  --type-rent-bg: rgba(168, 85, 247, 0.15);
  --type-rent-text: #c084fc;
  --type-rent-border: rgba(168, 85, 247, 0.3);
  
  --type-buy-bg: rgba(59, 130, 246, 0.15);
  --type-buy-text: #60a5fa;
  --type-buy-border: rgba(59, 130, 246, 0.3);

  /* Source / Tag Colors */
  --source-bg: rgba(14, 165, 233, 0.15);
  --source-text: #38bdf8;
  --source-border: rgba(14, 165, 233, 0.3);
  
  /* Fonts & Shadows */
  --font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.3;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Container (Full Screen Utilization) */
.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.6rem 0.6rem 2rem 0.6rem;
}

/* Glassmorphic Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Admin Login Screen Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1.25rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2);
  animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.login-icon i {
  width: 32px;
  height: 32px;
}

.login-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.login-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-with-icon .form-control {
  padding-left: 2.5rem;
  height: 46px;
  font-size: 0.9rem;
}

.login-error-msg {
  padding: 0.6rem 0.85rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-block {
  width: 100%;
}

.btn-login {
  height: 46px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
}

/* Logout Button */
.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.95rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.brand-title h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: white;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #818cf8;
}

/* Stats Overview Grid (Compact 7 Column Flow) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stat-card {
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.stat-card.total::before { background: var(--primary); }
.stat-card.active::before { background: var(--status-active-text); }
.stat-card.claim::before { background: var(--status-claim-text); }
.stat-card.suspend::before { background: var(--status-suspend-text); }
.stat-card.rent::before { background: var(--type-rent-text); }
.stat-card.buy::before { background: var(--type-buy-text); }
.stat-card.expiring::before { background: #fbbf24; }

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.stat-card.total .stat-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.stat-card.active .stat-icon { background: var(--status-active-bg); color: var(--status-active-text); }
.stat-card.claim .stat-icon { background: var(--status-claim-bg); color: var(--status-claim-text); }
.stat-card.suspend .stat-icon { background: var(--status-suspend-bg); color: var(--status-suspend-text); }
.stat-card.rent .stat-icon { background: var(--type-rent-bg); color: var(--type-rent-text); }
.stat-card.buy .stat-icon { background: var(--type-buy-bg); color: var(--type-buy-text); }
.stat-card.expiring .stat-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.stat-info h3 {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stat-info .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

/* -------------------------------------------------------------------------- */
/* Rental Expiration Alert Banner Bar                                          */
/* -------------------------------------------------------------------------- */
.alert-banner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.95rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(225, 29, 72, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.45); }
}

.alert-banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-banner-icon {
  width: 17px;
  height: 17px;
  color: #fbbf24;
  flex-shrink: 0;
  animation: bellRing 1.5s infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(2deg); }
}

/* Expiration Badges */
.badge-expiring-soon {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  font-weight: 600;
}

.badge-expired {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  font-weight: 700;
}

/* Control Section (Search & Filter Bar) */
.controls-section {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.controls-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-box input {
  width: 100%;
  padding: 0.4rem 0.65rem 0.4rem 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.76rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 0.4rem 1.6rem 0.4rem 0.65rem;
  background: rgba(15, 23, 42, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%3C94a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.5rem center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.75rem;
  appearance: none;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-select option {
  background-color: #0f172a;
  color: var(--text-main);
}

/* View Mode Selector Button Group */
.view-mode-group {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-mode {
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.btn-view-mode.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

/* Preset 10 Color Palette Swatches Bar */
.color-preset-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.color-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.color-swatch-dot:hover {
  transform: scale(1.2);
  border-color: #ffffff;
}

.color-swatch-dot.active {
  transform: scale(1.22);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 8px currentColor;
}

/* Single-Line Ultra-Compact Table Layout (1 Row Per Account) */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.74rem;
  table-layout: auto;
}

.data-table th, 
.data-table td {
  white-space: nowrap !important;
  word-break: keep-all !important;
  vertical-align: middle;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.data-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-glass);
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
  height: 38px;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Single-Line Passcode Flex Bar Container */
.passcode-cell-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  max-width: 280px;
  padding: 1px 0;
}

.secret-code-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.3rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-toggle-eye, .btn-copy {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 1px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-toggle-eye:hover, .btn-copy:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

/* Bank Badge & Official Bank Logo Image */
.bank-badge-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.bank-logo-box {
  border-radius: 6px !important;
}

.bank-name-text {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.76rem;
}

/* Copyable Text Field */
.copyable-field {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 600;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.badge-status-active {
  background: var(--status-active-bg);
  color: var(--status-active-text);
  border-color: var(--status-active-border);
}
.badge-status-active .badge-dot { background: var(--status-active-text); box-shadow: 0 0 5px var(--status-active-text); }

.badge-status-claim {
  background: var(--status-claim-bg);
  color: var(--status-claim-text);
  border-color: var(--status-claim-border);
}
.badge-status-claim .badge-dot { background: var(--status-claim-text); box-shadow: 0 0 5px var(--status-claim-text); }

.badge-status-suspend {
  background: var(--status-suspend-bg);
  color: var(--status-suspend-text);
  border-color: var(--status-suspend-border);
}
.badge-status-suspend .badge-dot { background: var(--status-suspend-text); box-shadow: 0 0 5px var(--status-suspend-text); }

.badge-type-rent {
  background: var(--type-rent-bg);
  color: var(--type-rent-text);
  border-color: var(--type-rent-border);
}

.badge-type-buy {
  background: var(--type-buy-bg);
  color: var(--type-buy-text);
  border-color: var(--type-buy-border);
}

/* Grouped View Sections */
.grouped-sections-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.source-group-card {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  margin-bottom: 0.5rem;
}

.source-group-header {
  padding: 0.6rem 0.85rem;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.source-group-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.source-pin-icon {
  width: 15px;
  height: 15px;
  color: var(--source-text);
}

.source-count-badge {
  padding: 0.1rem 0.45rem;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
}

.source-group-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.group-data-table {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

/* Mobile Cards Container & Mobile Cards */
.mobile-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.mobile-account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.mobile-account-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.mobile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.55rem;
}

.mobile-bank-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-bank-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
}

.mobile-account-no {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
}

.mobile-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.mobile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  min-width: 90px;
}

.mobile-value {
  color: var(--text-main);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.mobile-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.55rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dim);
}

/* Action Buttons in Table */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.btn-action {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-action.edit:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

.btn-action.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.45rem 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
  min-height: 65px;
  resize: vertical;
}

/* Custom Bank Dropdown Selector */
.custom-bank-select-wrapper {
  position: relative;
}

.custom-bank-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  min-height: 42px;
}

.custom-bank-trigger:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.selected-bank-display {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.825rem;
}

.custom-bank-options {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 230px;
  overflow-y: auto;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}

.custom-bank-options.open {
  display: block;
}

.bank-option-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.bank-option-item:hover {
  background-color: rgba(99, 102, 241, 0.15);
}

.bank-option-item.selected {
  background-color: rgba(99, 102, 241, 0.25);
}

/* Radio Group Segmented Control */
.segmented-control {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.segmented-option {
  flex: 1;
  text-align: center;
}

.segmented-option input[type="radio"] {
  display: none;
}

.segmented-option label {
  display: block;
  padding: 0.35rem 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segmented-option input[type="radio"]:checked + label {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 4000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  background: #1e293b;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  animation: slideInUp 0.25s ease forwards;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.info { border-left: 4px solid #6366f1; }
.toast.warning { border-left: 4px solid #f59e0b; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design & Mobile Media Queries */
@media (max-width: 768px) {
  .app-container {
    padding: 0.4rem 0.4rem 2rem 0.4rem;
  }
  
  .app-header {
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .header-brand {
    justify-content: flex-start;
  }

  .brand-title h1 {
    font-size: 1.05rem;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .btn-text {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .stat-card {
    padding: 0.45rem 0.55rem;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .search-box {
    width: 100%;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    width: 100%;
  }

  .filter-select {
    width: 100%;
    font-size: 0.72rem;
  }

  .view-mode-group {
    width: 100%;
    display: flex;
  }

  .btn-view-mode {
    flex: 1;
    justify-content: center;
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }

  .modal-content {
    max-width: 95vw;
    margin: 0.5rem;
  }

  .mobile-cards-container {
    grid-template-columns: 1fr;
  }
}
