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

:root {
  /* Color Palette - HSL Derived */
  --bg-main: #0b0f19;
  --bg-card: rgba(22, 28, 45, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  /* Primary Accent & Brand */
  --color-primary: #6366f1;
  --color-primary-glow: rgba(99, 102, 241, 0.15);
  --color-accent: #a855f7;
  
  /* Appendix C - Color Coding Logic */
  --status-blue: #2E75B6;
  --status-green: #1A7A6E;
  --status-amber: #BF8F00;
  --status-red: #C00000;
  --status-grey: #595959;

  /* Transparent status backings for glassmorphism */
  --status-blue-bg: rgba(46, 117, 182, 0.15);
  --status-green-bg: rgba(26, 122, 110, 0.15);
  --status-amber-bg: rgba(191, 143, 0, 0.15);
  --status-red-bg: rgba(192, 0, 0, 0.15);
  --status-grey-bg: rgba(89, 89, 89, 0.15);
  
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* Reset & Scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(15, 23, 42, 0.95) 0px, transparent 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Header */
.app-header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 10;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 800;
  color: white;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.logo-text h1 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.simulation-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sim-date-display {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-header);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-date-display span {
  color: var(--color-primary);
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Layout Grid */
.app-container {
  flex: 1;
  display: grid;
  grid-template-columns: 320px 1fr 380px;
  overflow: hidden;
  height: calc(100vh - 70px);
}

.sidebar {
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.2);
}

.workspace {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(11, 15, 25, 0.4);
  padding: 20px;
}

.chat-panel {
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

/* Sidebar Section Headers */
.section-title {
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 16px 20px 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sidebar Configuration Card */
.config-card {
  margin: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 50px;
}

/* Console Log */
.console-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 10px 16px 20px 16px;
  background: rgba(5, 8, 16, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.console-header {
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.console-logs {
  flex: 1;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-entry {
  line-height: 1.4;
  animation: fadeIn 0.2s ease-out;
}

.log-time {
  color: var(--text-subtle);
  margin-right: 6px;
}

/* Review Queue Section */
.workspace-top {
  margin-bottom: 20px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
}

.review-queue-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-queue-title h2 {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 700;
}

.review-cards-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.review-card {
  flex: 0 0 320px;
  background: var(--bg-card);
  border-radius: 10px;
  border-top-width: 4px;
  border-top-style: solid;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-premium);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.review-card.green {
  border-top-color: var(--status-green);
  border-left: 1px solid rgba(26, 122, 110, 0.2);
  border-right: 1px solid rgba(26, 122, 110, 0.2);
  border-bottom: 1px solid rgba(26, 122, 110, 0.2);
}

.review-card.amber {
  border-top-color: var(--status-amber);
  border-left: 1px solid rgba(191, 143, 0, 0.2);
  border-right: 1px solid rgba(191, 143, 0, 0.2);
  border-bottom: 1px solid rgba(191, 143, 0, 0.2);
}

.review-card.red {
  border-top-color: var(--status-red);
  border-left: 1px solid rgba(192, 0, 0, 0.2);
  border-right: 1px solid rgba(192, 0, 0, 0.2);
  border-bottom: 1px solid rgba(192, 0, 0, 0.2);
  animation: pulseRedBorder 2s infinite alternate;
}

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

.badge {
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.badge.green {
  background: var(--status-green-bg);
  color: #a7f3d0;
  border: 1px solid var(--status-green);
}

.badge.amber {
  background: var(--status-amber-bg);
  color: #fde68a;
  border: 1px solid var(--status-amber);
}

.badge.red {
  background: var(--status-red-bg);
  color: #fca5a5;
  border: 1px solid var(--status-red);
}

.card-title {
  font-weight: 600;
  font-size: 0.85rem;
}

.card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-card {
  font-family: var(--font-header);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.btn-card.approve {
  background: var(--status-green);
  color: white;
}

.btn-card.approve:hover {
  background: #145e54;
}

.btn-card.reject {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-card.reject:hover {
  border-color: var(--status-red);
  color: #ef4444;
}

/* Tabs & Dashboard Workspace */
.workspace-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  gap: 8px;
}

.tab-btn {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(12px);
  display: none;
}

.tab-content.active {
  display: block;
}

/* Table styling for tabs */
.data-table-container {
  overflow-x: auto;
}

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

.data-table th {
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Dashboard status indicators inside tables */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
}

.status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator.blue {
  background: var(--status-blue-bg);
  color: #93c5fd;
  border: 1px solid var(--status-blue);
}
.status-indicator.blue::before { background: var(--status-blue); }

.status-indicator.green {
  background: var(--status-green-bg);
  color: #a7f3d0;
  border: 1px solid var(--status-green);
}
.status-indicator.green::before { background: var(--status-green); }

.status-indicator.amber {
  background: var(--status-amber-bg);
  color: #fde68a;
  border: 1px solid var(--status-amber);
}
.status-indicator.amber::before { background: var(--status-amber); }

.status-indicator.red {
  background: var(--status-red-bg);
  color: #fca5a5;
  border: 1px solid var(--status-red);
}
.status-indicator.red::before { background: var(--status-red); }

.status-indicator.grey {
  background: var(--status-grey-bg);
  color: #d1d5db;
  border: 1px solid var(--status-grey);
}
.status-indicator.grey::before { background: var(--status-grey); }

/* Bank Feed Reconciliation Tab Custom styling */
.bank-recon-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.recon-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.recon-box h3 {
  font-family: var(--font-header);
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* Aging Analytics Tab Custom styling */
.aging-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.aging-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.aging-card h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.aging-card .value {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 700;
}

.aging-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.aging-chart-mock {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  padding-top: 10px;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chart-bar {
  width: 24px;
  background: linear-gradient(to top, var(--color-primary), var(--color-accent));
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.chart-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Right Chat Panel */
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), #818cf8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-header);
  color: white;
}

.chat-title h3 {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-title p {
  font-size: 0.7rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-title p::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: fadeIn 0.2s ease-out;
}

.msg.incoming {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-top-left-radius: 2px;
}

.msg.outgoing {
  align-self: flex-end;
  background: var(--status-green-bg);
  border: 1px solid var(--status-green);
  color: var(--text-main);
  border-top-right-radius: 2px;
}

.msg-meta {
  font-size: 0.65rem;
  color: var(--text-subtle);
  margin-top: 4px;
  text-align: right;
}

.chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-queries-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 90px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.chip {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.1);
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  padding: 10px 12px;
  font-size: 0.8rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-send {
  background: var(--color-primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-send:hover {
  background: #4f46e5;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseRedBorder {
  from { box-shadow: 0 0 4px rgba(192, 0, 0, 0.2); }
  to { box-shadow: 0 0 12px rgba(192, 0, 0, 0.6); border-color: rgba(192, 0, 0, 0.8); }
}

/* Typing indicator dot animation */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Mobile Bottom Navigation Bar */
.mobile-nav {
  display: none;
  height: 60px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  transition: var(--transition-fast);
  font-family: var(--font-header);
}

.mobile-nav-btn .nav-icon {
  font-size: 1.25rem;
}

.mobile-nav-btn .nav-label {
  font-size: 0.7rem;
  font-weight: 500;
}

.mobile-nav-btn.active {
  color: var(--color-primary);
}

.mobile-nav-btn.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--color-primary));
}

/* Responsive Styles for Screens <= 1024px */
@media (max-width: 1024px) {
  body {
    overflow: auto;
    height: 100vh;
    padding-bottom: 60px; /* Space for bottom nav */
  }

  .app-header {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }

  .brand-section {
    justify-content: center;
  }

  .simulation-controls {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sim-date-display {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .simulation-controls button {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px;
    justify-content: center;
  }

  .app-container {
    display: block; /* Disable desktop grid */
    height: calc(100vh - 130px - 60px);
    position: relative;
    overflow: hidden;
  }

  .sidebar, .workspace, .chat-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    border: none !important;
  }

  /* Show active view based on app-container class */
  .app-container.mobile-workspace-active .workspace {
    display: flex;
  }

  .app-container.mobile-chat-active .chat-panel {
    display: flex;
  }

  .app-container.mobile-settings-active .sidebar {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  /* Adjust internal panels to scroll independently */
  .workspace {
    padding: 12px;
    overflow-y: auto;
  }

  .sidebar {
    overflow-y: auto;
    padding: 12px 0;
  }

  .console-container {
    margin-bottom: 70px; /* extra space at bottom of settings view */
  }

  /* Pending Review Queue Scroll */
  .review-queue-title h2 {
    font-size: 0.95rem;
  }

  .review-cards-container {
    gap: 10px;
  }

  .review-card {
    flex: 0 0 280px; /* smaller cards on mobile */
  }

  /* Adjust Tab Navigation on Mobile */
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .tab-content {
    padding: 10px;
  }

  /* Bank Recon Split Stack */
  .bank-recon-split {
    grid-template-columns: 1fr; /* Stack the split view */
    gap: 14px;
  }

  /* Aging Analytics Stack */
  .aging-summary-cards {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile instead of 5 */
    gap: 8px;
  }

  .aging-details-grid {
    grid-template-columns: 1fr; /* Stack the details */
    gap: 14px;
  }

  /* Chat Panel Adjustments */
  .chat-panel {
    height: 100%;
  }

  .chat-messages {
    padding: 12px;
    gap: 8px;
  }

  .chat-input-area {
    padding: 10px 12px;
  }

  .mock-query-chips {
    max-height: 70px;
  }
}
