/* Billingmaker – app.css */

:root {
  --bm-blue:   #0d6efd;
  --bm-orange: #fd7e14;
  --bm-bg:     #f8f9fa;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bm-bg);
  color: #212529;
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.navbar-brand { letter-spacing: -.02em; }

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: .75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  border-radius: .75rem .75rem 0 0 !important;
  font-weight: 600;
}

/* ─── Stat cards ─────────────────────────────────────────────────────────────── */
.stat-card {
  border-left: 4px solid var(--bm-blue);
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: .5rem;
  background: rgba(13,110,253,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--bm-blue);
}
.stat-card.orange { border-left-color: var(--bm-orange); }
.stat-card.orange .stat-icon { background: rgba(253,126,20,.1); color: var(--bm-orange); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn { border-radius: .5rem; font-weight: 500; }
.btn-primary { background: var(--bm-blue); border-color: var(--bm-blue); }

/* ─── Tables ─────────────────────────────────────────────────────────────────── */
.table thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  border-top: none;
  background: #f8f9fa;
}
.table tbody tr:hover { background: rgba(13,110,253,.03); }

/* ─── Badge / status ─────────────────────────────────────────────────────────── */
.badge-status { font-size: .75rem; padding: .35em .65em; border-radius: 2rem; }

/* ─── Auth pages ─────────────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 0;
}
.auth-card { width: 100%; max-width: 440px; }

/* ─── Invoice form ───────────────────────────────────────────────────────────── */
.items-table th { font-size: .8rem; color: #6c757d; text-transform: uppercase; }
.item-row td { vertical-align: middle; }
.totals-box { background: #f8f9fa; border-radius: .5rem; padding: 1.25rem; }
.totals-box .grand-total { font-size: 1.3rem; font-weight: 700; color: var(--bm-blue); }

/* ─── Invoice preview layouts ────────────────────────────────────────────────── */
.layout-preview {
  border: 2px solid transparent;
  border-radius: .5rem; cursor: pointer; transition: .15s;
  padding: .5rem;
}
.layout-preview:hover, .layout-preview.selected {
  border-color: var(--bm-blue);
  background: rgba(13,110,253,.04);
}
.layout-thumb { width: 100%; height: 90px; border-radius: .25rem; object-fit: cover; }

/* ─── Settings page ──────────────────────────────────────────────────────────── */
.settings-nav .nav-link { color: #495057; border-radius: .5rem; }
.settings-nav .nav-link.active { background: rgba(13,110,253,.1); color: var(--bm-blue); font-weight: 500; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer { font-size: .875rem; }

/* ─── Logo upload preview ────────────────────────────────────────────────────── */
.logo-preview { max-width: 200px; max-height: 80px; object-fit: contain; }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.main-wrapper { padding-top: 2rem; padding-bottom: 4rem; min-height: calc(100vh - 130px); }
.section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }
.text-orange { color: var(--bm-orange) !important; }
.bg-orange-soft { background: rgba(253,126,20,.1); }
.rounded-xl { border-radius: .75rem !important; }

/* ─── Invoice PDF-like view ──────────────────────────────────────────────────── */
.invoice-view-wrapper {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 3rem;
  max-width: 860px;
  margin: 0 auto;
  overflow-x: hidden;
}
.invoice-view-wrapper table {
  max-width: 100%;
}

/* ─── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .invoice-view-wrapper { padding: 1.5rem; }
  .auth-card { max-width: 100%; }
}