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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ─── Login ────────────────────────────────────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.login-logo {
  background: #ad5f11;
  padding: 40px 40px 28px;
  text-align: center;
  color: #fff;
}

.login-logo h1 {
  font-size: 32px;
  letter-spacing: 6px;
  font-weight: 900;
  color: #fff;
}

.login-logo p {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.login-body {
  padding: 32px 40px 40px;
}

.login-body h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.login-sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 28px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
}

.btn-google svg path { fill: #fff !important; }

.btn-google:hover {
  background: #333;
}

.error-msg {
  background: #fde8e8;
  color: #c0392b;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
header {
  background: #ad5f11;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-name {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
}

.brand-sub {
  color: #e0a06a;
  font-size: 12px;
}

.back-link {
  color: #e0a06a;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s;
}

.back-link:hover { background: rgba(255,255,255,.1); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0a06a;
  font-size: 13px;
}

.header-nav .btn-sm, .header-nav .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #ad5f11;
}

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

/* ─── Meetings Grid ────────────────────────────────────────────────────────── */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.meeting-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: all .2s;
}

.meeting-card:hover {
  border-color: #ad5f11;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(173,95,17,.12);
}

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

.meeting-title {
  font-size: 15px;
  font-weight: 600;
  color: #ad5f11;
  line-height: 1.3;
}

.meeting-date {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 3px;
}

.meeting-summary {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-top: 8px;
}

.meeting-client {
  font-size: 12px;
  color: #c97014;
  margin-top: 8px;
  font-weight: 500;
}

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-green { background: #d4f4e4; color: #1a7a4a; }
.badge-gray  { background: #e8eaed; color: #555; }

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ad5f11;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5e8d8;
}

/* ─── Meeting Detail ───────────────────────────────────────────────────────── */
.meeting-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.meeting-big-title {
  font-size: 24px;
  color: #ad5f11;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.summary-text { font-size: 14px; line-height: 1.7; color: #444; }

.action-list { padding-left: 20px; }
.action-list li { font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 4px; }

.participants { display: flex; flex-wrap: wrap; gap: 6px; }
.participant-chip {
  background: #fae8d4;
  color: #c97014;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* ─── Budget ───────────────────────────────────────────────────────────────── */
.card-budget { position: sticky; top: 72px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }

.add-row { display: flex; gap: 6px; align-items: center; }

.totals-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #555;
}

/* ─── Inputs ───────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e0e4ec;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color .15s;
  background: #fff;
  color: #1a1a2e;
}

.input:focus { outline: none; border-color: #c97014; }
.input-sm { width: 80px; flex-shrink: 0; }
.input-xs { width: 60px; padding: 4px 8px; }
textarea.input { resize: vertical; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
}

.btn:disabled { opacity: .6; cursor: default; }

.btn-primary   { background: #ad5f11; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #c97014; }
.btn-success   { background: #1a7a4a; color: #fff; }
.btn-success:hover:not(:disabled) { background: #25a066; }
.btn-outline   { background: transparent; color: #ad5f11; border: 2px solid #ad5f11; }
.btn-outline:hover:not(:disabled) { background: #ad5f11; color: #fff; }
.btn-danger    { background: #fde8e8; color: #c0392b; border: none; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-full      { width: 100%; display: block; margin-top: 4px; }

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-close:hover { background: #f0f2f5; color: #333; }

/* ─── Table ────────────────────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.table th {
  text-align: left;
  padding: 8px 10px;
  background: #f4f6f9;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #e0e4ec;
}

.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

.table tbody tr:hover { background: #fafbfd; }

.total-row td { border-top: 2px solid #ad5f11; padding-top: 10px; font-size: 15px; }

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 720px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #f0f2f5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-header h2 { font-size: 18px; }
.modal-body { padding: 24px; }

.add-item-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f2f5;
}

.add-item-form h3 { font-size: 14px; margin-bottom: 10px; color: #555; }

.form-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }

/* ─── Dólar / Conversión ───────────────────────────────────────────────────── */
.dolar-box {
  margin-bottom: 10px;
}

.dolar-tag {
  display: inline-block;
  background: #eaf4ea;
  color: #1a7a4a;
  border: 1px solid #b6ddb6;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
}

.dolar-tag.dolar-error {
  background: #fff8e1;
  color: #856404;
  border-color: #ffe08a;
}

.dual-total-box {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.dual-item {
  flex: 1;
  background: #ad5f11;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dual-label {
  font-size: 10px;
  color: #e0a06a;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.dual-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* ─── Misc ─────────────────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 60px; color: #888; }
.empty-state { text-align: center; padding: 80px 20px; color: #888; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { margin-bottom: 6px; }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.text-muted { color: #999; }
.text-right { text-align: right; }
.text-danger td { color: #c0392b; }
