/* ==========================================================================
   Complete Financial Flow & Fee Breakdown Model Stylesheet
   Modern Glassmorphism & High-Precision Financial Table Styling
   ========================================================================== */

:root {
  /* Color Palette - Light Theme */
  --bg-app: #f4f7fb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #047857;
  
  --accent: #6366f1;
  --accent-light: #eef2ff;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --elevated-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
  --inner-glow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
body.theme-dark {
  --bg-app: #0b0f19;
  --bg-card: #131b2e;
  --bg-glass: rgba(19, 27, 46, 0.85);
  --border-color: #23314e;
  --border-subtle: #1c273e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary-light: #1e293b;
  --primary-border: #3b82f6;
  
  --success-light: #064e3b;
  --success-border: #059669;
  --success-text: #34d399;
  
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --elevated-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
  --inner-glow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mono {
  font-family: var(--font-mono);
}

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Layout Structure */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Glass Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 28px;
  transition: var(--transition);
}

/* App Header */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.brand h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Calculator Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.card-title i {
  color: var(--primary);
  font-size: 1.2rem;
}

.card-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Inputs Grid */
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.highlight-box {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: var(--bg-card);
  transition: var(--transition);
}

.primary-highlight {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-color: var(--primary-border);
}

.primary-highlight:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.success-highlight {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-color: var(--success-border);
}

.success-highlight:focus-within {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.input-label-row label {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--text-primary);
  color: var(--bg-card);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

.label-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: normal;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
  font-family: var(--font-mono);
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary);
}

.field-help {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Presets Row */
.presets-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.preset-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Advanced Rates Accordion */
.advanced-settings-accordion {
  margin-top: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-subtle);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-toggle:hover {
  color: var(--text-primary);
}

.toggle-chevron {
  transition: transform 0.3s ease;
}

.accordion-toggle.active .toggle-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 16px 18px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.accordion-content.show {
  display: block;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.rate-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.rate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.rate-input-wrapper input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
}

.rate-unit {
  position: absolute;
  right: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* KPI Summary Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevated-shadow);
}

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

.submitter-kpi .kpi-icon { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.freecomers-kpi .kpi-icon { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.gateway-kpi .kpi-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.net-kpi .kpi-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flow Pipeline */
.flow-pipeline-section {
  padding: 20px 24px;
}

.flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 140px;
  flex: 1;
}

.node-badge {
  position: absolute;
  top: -10px;
  background: var(--text-primary);
  color: var(--bg-card);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.node-icon {
  font-size: 1.25rem;
  margin: 4px 0 6px;
  color: var(--primary);
}

.node-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-amount {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.node-sub {
  font-size: 0.72rem;
  color: var(--danger);
  font-weight: 600;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-splits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1.4;
  min-width: 200px;
}

.flow-node-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.split-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.split-val.highlight {
  color: var(--success-text);
  font-size: 0.95rem;
}

/* ==========================================================================
   Table Section & Dynamic Financial Table
   ========================================================================== */

.table-section {
  padding: 32px;
}

.table-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.table-header-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.table-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-mode-group {
  display: inline-flex;
  background: var(--border-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.mode-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Financial Table Base Styles (Modern View) */
.financial-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.financial-table th {
  background: var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.01em;
}

.financial-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

.financial-table tbody tr {
  transition: background-color 0.15s ease;
}

.financial-table tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.03);
}

/* Column Specific Alignments & Widths */
.col-item { width: 30%; }
.col-calc { width: 28%; }
.col-amount { width: 18%; }
.col-dest { width: 24%; }

.cell-amount {
  font-size: 1.05rem;
}

.math-calc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Highlighted Row Accents */
.highlight-inline {
  background: #fef08a;
  color: #854d0e;
  padding: 2px 6px;
  border-radius: 4px;
}

body.theme-dark .highlight-inline {
  background: #713f12;
  color: #fef08a;
}

.highlight-row-total {
  background: rgba(59, 130, 246, 0.06);
}

.highlight-row-total td {
  font-weight: 700;
}

.accent-amount {
  color: var(--primary);
  font-size: 1.15rem;
}

.highlight-row-net {
  background: rgba(16, 185, 129, 0.08);
}

.highlight-row-net td {
  font-weight: 700;
}

.net-amount {
  color: var(--success-text);
  font-size: 1.2rem;
}

/* Destination Badges */
.dest-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dest-filmmaker {
  background: #eff6ff;
  color: #1e40af;
}

.dest-freecomers {
  background: #eef2ff;
  color: #4338ca;
}

.dest-tax {
  background: #f1f5f9;
  color: #475569;
}

.dest-razorpay-in {
  background: #ecfeff;
  color: #0e7490;
}

.dest-deduct {
  background: #fef2f2;
  color: #b91c1c;
}

.dest-bank {
  background: #ecfdf5;
  color: #065f46;
}

/* Dark Mode Badges Adjustments */
body.theme-dark .dest-filmmaker { background: #1e293b; color: #93c5fd; }
body.theme-dark .dest-freecomers { background: #1e1b4b; color: #a5b4fc; }
body.theme-dark .dest-tax { background: #1e293b; color: #cbd5e1; }
body.theme-dark .dest-razorpay-in { background: #083344; color: #67e8f9; }
body.theme-dark .dest-deduct { background: #450a0a; color: #fca5a5; }
body.theme-dark .dest-bank { background: #064e3b; color: #6ee7b7; }

/* ==========================================================================
   CLASSIC EXACT VIEW (Matches the attached user image screenshot style)
   ========================================================================== */

.classic-mode .table-section {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #d1d5db;
}

.classic-mode .table-header-title {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.classic-mode #tableMainTitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000000;
  font-family: Arial, sans-serif;
}

.classic-mode #tableSubTitle {
  font-size: 1.1rem;
  color: #333333;
  margin-top: 8px;
  font-family: Arial, sans-serif;
}

.classic-mode .financial-table {
  border-collapse: collapse;
  border: 1.5px solid #000000;
  border-radius: 0;
  font-family: Arial, sans-serif;
  color: #000000;
}

.classic-mode .financial-table th,
.classic-mode .financial-table td {
  border: 1.5px solid #000000;
  padding: 12px 14px;
  background: transparent;
  color: #000000;
  font-size: 0.95rem;
}

.classic-mode .financial-table th {
  font-weight: 500;
}

.classic-mode .financial-table tbody tr:hover {
  background: transparent;
}

.classic-mode .dest-badge {
  background: transparent !important;
  color: #000000 !important;
  padding: 0;
  border-radius: 0;
  font-weight: normal;
  font-size: 0.95rem;
}

.classic-mode .math-calc {
  color: #000000;
  font-family: Arial, sans-serif;
}

.classic-mode .mono {
  font-family: Arial, sans-serif;
}

.classic-mode .accent-amount,
.classic-mode .net-amount {
  color: #000000;
  font-size: 0.95rem;
  font-weight: normal;
}

.classic-mode .highlight-inline {
  background: #fef08a !important;
  color: #000000 !important;
  padding: 1px 4px;
  border-radius: 2px;
}

.classic-mode .highlight-row-total,
.classic-mode .highlight-row-net {
  background: transparent;
}

/* Footnote */
.table-footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.note-item i {
  color: var(--primary);
  margin-top: 3px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--success);
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-container {
    padding: 16px 12px 32px;
    gap: 20px;
  }

  .glass-panel {
    padding: 20px 16px;
  }

  .inputs-grid {
    grid-template-columns: 1fr;
  }

  .flow-container {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .table-section {
    padding: 20px 14px;
  }

  .financial-table th,
  .financial-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .app-header,
  .calculator-card,
  .kpi-grid,
  .flow-pipeline-section,
  .table-controls,
  .app-footer,
  .toast {
    display: none !important;
  }

  .main-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .table-section {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .financial-table {
    border-collapse: collapse !important;
    width: 100% !important;
    border: 1.5px solid #000000 !important;
  }

  .financial-table th,
  .financial-table td {
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
  }
}
