/* ==========================================================================
   COLOSO CONTABILIDAD - Minimalist Financial & Administrative Design System
   ========================================================================== */

:root {
  /* Main Light Palette */
  --bg-main: #f8fafc;             /* Off-white crisp slate background */
  --bg-card: #ffffff;             /* Pure white container cards */
  --bg-card-hover: #f1f5f9;       /* Soft light hover state */
  --border-light: #e2e8f0;        /* Subtle crisp border */
  --border-muted: #cbd5e1;

  /* Primary & Accent Colors (Muted Slate / Fog Blue) */
  --primary: #334155;             /* Slate 700 - Main accent */
  --primary-hover: #1e293b;       /* Slate 800 - Deep hover */
  --primary-light: #f1f5f9;       /* Soft tint */
  --accent-blue: #475569;         /* Slate 600 - Muted fog blue */
  --accent-light: #f8fafc;
  
  /* Status Badges - Desaturated & Soft Pastels */
  --emerald: #047857;             /* Conciliado Green */
  --emerald-bg: #ecfdf5;          /* Soft Mint Pastels */
  --emerald-border: #a7f3d0;
  
  --rose: #b91c1c;                /* Diferencia Red */
  --rose-bg: #fef2f2;             /* Soft Rose Pastels */
  --rose-border: #fecaca;

  --amber: #b45309;               /* Parcial Amber */
  --amber-bg: #fffbeb;            /* Soft Amber Pastels */
  --amber-border: #fde68a;

  --cyan: #0369a1;                /* Info Slate Blue */
  --cyan-bg: #f0f9ff;
  --cyan-border: #bae6fd;

  --purple: #6d28d9;
  --purple-bg: #f5f3ff;
  --purple-border: #ddd6fe;
  
  /* Text & Typography */
  --text-main: #0f172a;           /* Dark Charcoal / Slate 900 */
  --text-body: #334155;           /* Body Charcoal / Slate 700 */
  --text-muted: #64748b;          /* Muted Grey / Slate 500 */
  --text-dim: #94a3b8;            /* Light Grey / Slate 400 */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Clean Shadows & Radius */
  --card-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Clean Minimal Containers (Replaces heavy glassmorphism) */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass:hover {
  box-shadow: var(--shadow-md);
}

/* Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

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

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

.brand-img-coloso {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sentinel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.sentinel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.brand-img-sentinel {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.brand-text h1 span {
  color: var(--accent-blue);
  font-weight: 800;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-muted);
}

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

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(4, 120, 87, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(4, 120, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

/* Navigation Tabs Styling */
.main-tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Main Layout Container */
.app-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

/* Discrete Professional Buttons */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-success {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}
.btn-success:hover {
  background: #046c4e;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-muted);
}
.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: var(--text-main);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 8px;
}

/* View Pages Control */
.app-view {
  display: none;
}
.app-view.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Login View Styling */
.login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.login-brand h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.login-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.1);
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-credentials-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
}

/* Inicio de Conciliación Page & Cards */
.page-title-box {
  margin-bottom: 24px;
}
.page-title-box h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}
.page-title-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.loaded-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
}

.loaded-file-badge i {
  color: var(--emerald);
}

.conciliaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.conciliacion-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.conciliacion-card:hover {
  border-color: var(--border-muted);
  box-shadow: var(--shadow-md);
}

.conciliacion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.conciliacion-title-group h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.conciliacion-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.conciliacion-metrics-list {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conc-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.conc-metric-row .label {
  color: var(--text-muted);
}

.conc-metric-row .val {
  font-weight: 600;
  color: var(--text-main);
}

.conciliacion-card-actions {
  display: flex;
  gap: 8px;
}

/* Processing Transition Animation Screen */
.processing-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.spinner-icon {
  font-size: 38px;
  color: var(--accent-blue);
  animation: spin 1.2s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.processing-steps-list {
  text-align: left;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.processing-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.processing-step-item.completed {
  color: var(--emerald);
  font-weight: 600;
  background: var(--emerald-bg);
}

.processing-step-item i {
  font-size: 16px;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* KPI Banner Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}

.metric-card.highlight {
  border-color: var(--border-muted);
  background: #f8fafc;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.metric-icon.green { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.metric-icon.red { background: var(--rose-bg); color: var(--rose); border: 1px solid var(--rose-border); }
.metric-icon.cyan { background: var(--cyan-bg); color: var(--cyan); border: 1px solid var(--cyan-border); }
.metric-icon.amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.metric-icon.purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }

.metric-data .metric-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}
.metric-data .metric-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 2px 0;
  letter-spacing: -0.3px;
}
.metric-data .metric-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Secondary Metrics Grid */
.secondary-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sec-metric-box {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sec-body {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}
.sec-body-sub {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

/* Utility Colors & Spacing */
.text-emerald { color: var(--emerald); }
.text-rose { color: var(--rose); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.text-sm { font-size: 12.5px; }
.code-font { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }

.margin-top { margin-top: 20px; }

/* Report Cards */
.report-card {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.card-header h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.card-header h2 i {
  color: var(--accent-blue);
}

.card-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

/* File Upload Dropzones */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.dropzone {
  border: 2px dashed var(--border-muted);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: #f1f5f9;
}

.dropzone-icon {
  font-size: 40px;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.dropzone h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dropzone p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.dropzone-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.upload-summary {
  font-size: 13px;
  color: var(--text-muted);
}

/* Clean Financial Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

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

.data-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.1s ease;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* Conciliation Status Badges (Soft Muted Pastels) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.badge-info { background: var(--cyan-bg); color: var(--cyan); border: 1px solid var(--cyan-border); }
.badge-warning { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-danger { background: var(--rose-bg); color: var(--rose); border: 1px solid var(--rose-border); }
.badge-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }

/* Search & Filter Controls */
.search-wrapper {
  position: relative;
  width: 280px;
}

.search-wrapper i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

.search-wrapper input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  background: #ffffff;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.search-wrapper input:focus {
  border-color: var(--primary);
}

.filter-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 4px 11px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill.active, .pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.modal-container, .modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.modal-container.modal-lg, .modal-card.modal-lg {
  max-width: 920px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 20px 22px;
}

.invoice-detail-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.detail-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-box .label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.detail-box strong {
  font-size: 13.5px;
  color: var(--text-main);
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.2s ease;
}

.toast.success { border-left: 4px solid var(--emerald); }
.toast.info { border-left: 4px solid var(--cyan); }
.toast.error { border-left: 4px solid var(--rose); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .main-tabs {
    overflow-x: auto;
  }
  .tab-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer Co-branding */
.app-footer {
  margin-top: 36px;
  padding-bottom: 24px;
}

.footer-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
}

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

.footer-logo-coloso {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-divider {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 300;
}

.footer-logo-sentinel {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
