/* ============================================
   SISTEMA DE GESTIÓN DE ACTAS - STYLES
   Mobile First | Flexbox & Grid
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #10b981;
  --success-light: #d1fae5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* --- Header / Navbar --- */
.navbar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.navbar-brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 400;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  padding: 1.25rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* --- Section Header --- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

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

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

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  font-size: 1.1em;
}

/* --- Card / Panel --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.card-body {
  padding: 1.25rem;
}

/* --- Table (Desktop) --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  display: none;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-100);
}

.data-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table td.truncate {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Cards View (Mobile) --- */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
}

.acta-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: box-shadow var(--transition);
}

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

.acta-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.acta-card-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-900);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.acta-card-date {
  font-size: 0.68rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.acta-card-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.acta-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.acta-card-meta span {
  font-size: 0.73rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.acta-card-actions {
  display: flex;
  gap: 0.5rem;
}

.acta-card-actions .btn {
  flex: 1;
  justify-content: center;
}

/* --- Upload Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--gray-500);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal-body {
  padding: 1.25rem;
}

/* --- Drop Zone --- */
.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.drop-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.drop-zone-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.drop-zone-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.35rem;
}

.file-preview {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--success-light);
  border-radius: var(--radius);
  margin-top: 1rem;
  border: 1px solid #a7f3d0;
}

.file-preview.visible {
  display: flex;
}

.file-preview-icon {
  font-size: 1.5rem;
}

.file-preview-info {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-size {
  font-size: 0.72rem;
  color: var(--gray-500);
}

.file-preview-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--danger);
  padding: 0.25rem;
}

/* --- Progress Bar --- */
.progress-container {
  display: none;
  margin-top: 1rem;
}

.progress-container.visible {
  display: block;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  width: 0%;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.4rem;
  text-align: center;
}

/* --- Empty State --- */
.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

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

.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 380px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--accent); }

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1rem;
  padding: 0.15rem;
}

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

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-red { background: var(--danger-light); color: var(--danger); }

/* ============================================
   RESUMEN PAGE - SPLIT VIEW
   ============================================ */

.split-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* --- Mobile: hide PDF panel, show via tab --- */
.pdf-panel {
  display: none;
  flex: 1;
  min-height: 250px;
  background: var(--gray-100);
  position: relative;
  flex-direction: column;
}

/* Mobile: control panel takes full height */
.control-panel {
  flex: 1 !important;
  min-height: 0 !important;
  border-top: none !important;
}

/* Mobile PDF inside tab */
.mobile-pdf-container {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 400px;
}

.mobile-pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* Hide "Documento" tab on desktop */
#tab-btn-doc {
  display: flex;
}

.pdf-panel-header {
  padding: 0.75rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pdf-panel-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-viewer {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--gray-200);
}

.pdf-placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

.pdf-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* --- Control Panel --- */
.control-panel {
  flex: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 2px solid var(--gray-200);
}

.control-tabs {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

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

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

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.tab-pane {
  display: none;
}

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

/* --- Event / Risk Items --- */
.info-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}

.info-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.info-item-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.info-item-badge.high { background: var(--danger); }
.info-item-badge.medium { background: var(--accent); }
.info-item-badge.low { background: var(--success); }

.info-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-800);
}

.info-item-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.info-item-meta {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--gray-400);
}

/* --- Chat / Consulta IA --- */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.chat-message {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.84rem;
  line-height: 1.55;
  animation: msgIn 0.25s ease;
}

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

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-message.ai {
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
}

/* --- Rich HTML content inside AI chat messages --- */
.chat-message.ai p {
  margin: 0 0 0.45rem 0;
}

.chat-message.ai p:last-child {
  margin-bottom: 0;
}

.chat-message.ai strong,
.chat-message.ai b {
  font-weight: 700;
  color: var(--gray-900);
}

.chat-message.ai em,
.chat-message.ai i {
  font-style: italic;
  color: var(--gray-600);
}

.chat-message.ai ul,
.chat-message.ai ol {
  margin: 0.35rem 0 0.5rem 0;
  padding-left: 1.25rem;
}

.chat-message.ai li {
  margin-bottom: 0.3rem;
}

.chat-message.ai li:last-child {
  margin-bottom: 0;
}

.chat-message.ai table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.78rem;
}

.chat-message.ai th,
.chat-message.ai td {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--gray-300);
  text-align: left;
  vertical-align: top;
}

.chat-message.ai th {
  background: var(--gray-200);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-600);
}

.chat-message.ai tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

.chat-message.ai hr {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 0.5rem 0;
}

.chat-message.ai h3,
.chat-message.ai h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.4rem 0 0.25rem 0;
  color: var(--gray-900);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

.chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--primary-dark);
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  z-index: 50;
}

/* --- Confirm Dialog --- */
.confirm-dialog {
  text-align: center;
  padding: 1rem 0;
}

.confirm-dialog-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.confirm-dialog h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.confirm-dialog p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.confirm-dialog-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.back-link:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* --- Small tablets (>= 480px) --- */
@media (min-width: 480px) {
}

/* --- Tablets (>= 640px) --- */
@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .modal {
    max-width: 480px;
  }
}

/* --- Desktop (>= 768px) --- */
@media (min-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }

  .main-content {
    padding: 1.75rem 2rem;
  }

  /* Hide mobile cards, show table */
  .cards-list {
    display: none;
  }

  .data-table {
    display: table;
  }

  /* Split View — desktop: PDF left, panel right */
  .split-container {
    flex-direction: row;
  }

  .pdf-panel {
    display: flex !important;
    flex: 1;
    min-height: auto;
    border-right: 2px solid var(--gray-200);
  }

  .control-panel {
    flex: 0 0 420px !important;
    min-height: auto !important;
    border-top: none !important;
  }

  /* Hide "Documento" tab on desktop (PDF is visible in left panel) */
  #tab-btn-doc {
    display: none !important;
  }

  /* On desktop, default to eventos tab */
  #tab-documento {
    display: none !important;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
  }
}

/* --- Large Desktop (>= 1024px) --- */
@media (min-width: 1024px) {
  .control-panel {
    flex: 0 0 480px;
  }
}

/* --- Mobile-specific tweaks --- */
@media (max-width: 479px) {
  .navbar-content {
    gap: 0.5rem;
  }

  .navbar-brand h1 {
    font-size: 0.95rem;
  }

  .navbar-brand span {
    display: none;
  }

  .btn-lg {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }

  .modal {
    margin: 0.5rem;
  }

  /* Chat adjustments */
  .chat-message {
    max-width: 92%;
    font-size: 0.8rem;
  }

  .tab-btn {
    font-size: 0.7rem;
    padding: 0.65rem 0.35rem;
    gap: 0.2rem;
  }
}

/* --- Utility Classes --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
