/* ================================================================
   SCORR Multi-Vendor Marketplace — Frontend Styles v2.0
   Brand: Deep Blue #004aad | Teal #00bcd4 | Green #00897b | White
   Fonts: Lato (headings) + Roboto (body)
   ================================================================ */

:root {
  --blue:       #004aad;
  --blue-mid:   #0077cc;
  --blue-light: #e0f0ff;
  --teal:       #00bcd4;
  --teal-light: #e0f7fa;
  --green:      #00897b;
  --green-light:#e0f2f1;
  --white:      #ffffff;
  --bg:         #f4f9ff;
  --border:     #c8e0f8;
  --text:       #1a2a3a;
  --muted:      #6b8299;
  --shadow:     0 4px 24px rgba(0,74,173,.10);
  --shadow-lg:  0 8px 40px rgba(0,74,173,.16);
  --radius:     14px;
  --radius-sm:  8px;
  --fh:         'Lato', sans-serif;
  --fb:         'Roboto', sans-serif;
}

/* Reset */
.scorr * { box-sizing: border-box; margin: 0; padding: 0; }
.scorr { font-family: var(--fb); color: var(--text); background: var(--bg); min-height: 60vh; }

/* Container */
.scorr-wrap  { max-width: 1140px; margin: 0 auto; padding: 28px 20px; }
.scorr-wrap2 { max-width: 600px;  margin: 0 auto; padding: 40px 20px; }

/* Grids */
.g2 { display: grid; grid-template-columns: 1fr 1fr;         gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr);   gap: 18px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr);   gap: 16px; }
@media (max-width: 900px) { .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g2,.g3,.g4 { grid-template-columns: 1fr; } }

/* Card */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-flush { padding: 0; overflow: hidden; }

/* ── Page Header ─────────────────────────────────────────── */
.page-hdr {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid) 55%, var(--teal));
  border-radius: var(--radius);
  padding: 28px 34px;
  color: #fff;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.page-hdr::after {
  content: '';
  position: absolute; right:-50px; top:-50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.page-hdr h1 { font-family: var(--fh); font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.page-hdr p  { opacity: .85; font-size: 14px; }

/* ── Section Title ───────────────────────────────────────── */
.sec-title {
  font-family: var(--fh); font-size: 17px; font-weight: 700;
  color: var(--blue); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--blue-light);
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.si-blue   { background: var(--blue-light);  color: var(--blue); }
.si-teal   { background: var(--teal-light);  color: var(--teal); }
.si-green  { background: var(--green-light); color: var(--green); }
.si-orange { background: #fff3e0; color: #e65100; }
.stat-val  { font-family: var(--fh); font-size: 24px; font-weight: 900; color: var(--blue); line-height:1; }
.stat-lbl  { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing:.5px; }

/* ── Auth Wrapper ────────────────────────────────────────── */
.auth-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.auth-hdr { background: linear-gradient(135deg, var(--blue), var(--teal)); padding: 30px; text-align: center; color: #fff; }
.auth-hdr h2 { font-family: var(--fh); font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.auth-hdr p  { opacity: .85; font-size: 14px; }
.auth-body   { padding: 30px; }
.auth-foot   { text-align: center; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--blue-mid); text-decoration: none; font-weight: 600; }

/* ── Dashboard Layout ────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; min-height: 72vh; }
@media (max-width: 860px) { .dash-layout { grid-template-columns: 1fr; } }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  overflow: hidden;
}
.sidebar-profile {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.sidebar-profile img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid var(--border); }
.sidebar-name    { font-family: var(--fh); font-weight: 700; color: var(--blue); font-size: 14px; margin-top: 8px; }
.sidebar-company { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 600; font-family: var(--fh);
  border-left: 3px solid transparent; transition: all .15s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); }
.sidebar-nav a .ico   { font-size: 16px; width: 20px; text-align: center; }
.sidebar-nav .support-link                  { color: var(--green); }
.sidebar-nav .support-link:hover            { background: var(--green-light); border-left-color: var(--green); }
.sidebar-nav .logout-link                   { color: #e53935; }
.sidebar-nav .logout-link:hover             { background: #ffebee; border-left-color: #e53935; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group       { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 6px; font-family: var(--fh); }
.form-group .req  { color: #e53935; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--fb); color: var(--text);
  background: #fff; transition: border-color .18s, box-shadow .18s; outline: none;
}
.form-control:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0,119,204,.12); }
textarea.form-control { min-height: 96px; resize: vertical; }
.form-control[disabled] { background: #f5f8ff; cursor: not-allowed; color: var(--muted); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.file-input { width: 100%; padding: 10px 14px; border: 2px dashed var(--border); border-radius: var(--radius-sm); cursor: pointer; font-family: var(--fb); font-size: 13px; background: #fafcff; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 26px; border-radius: 25px; font-size: 14px; font-weight: 700;
  font-family: var(--fh); cursor: pointer; border: none;
  text-decoration: none; transition: all .2s; letter-spacing: .2px; line-height: 1.4;
}
.btn-primary { background: linear-gradient(135deg,var(--blue),var(--blue-mid)); color:#fff; box-shadow: 0 4px 14px rgba(0,74,173,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,74,173,.32); color:#fff; }
.btn-teal  { background: linear-gradient(135deg,var(--teal),#0097a7); color:#fff; }
.btn-teal:hover  { transform: translateY(-2px); color:#fff; }
.btn-green { background: linear-gradient(135deg,var(--green),#00695c); color:#fff; }
.btn-green:hover { transform: translateY(-2px); color:#fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color:#fff; }
.btn-danger { background: linear-gradient(135deg,#e53935,#b71c1c); color:#fff; }
.btn-danger:hover { transform: translateY(-2px); color:#fff; }
.btn-sm  { padding: 6px 14px; font-size: 12px; border-radius: 18px; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--green-light); color: #00695c; border-left: 4px solid var(--green); }
.alert-error   { background: #ffebee;             color: #b71c1c; border-left: 4px solid #e53935; }
.alert-info    { background: var(--blue-light);   color: var(--blue); border-left: 4px solid var(--blue-mid); }
.alert-warning { background: #fff8e1;             color: #e65100; border-left: 4px solid #ffa000; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 11px; border-radius: 18px; font-size: 11px; font-weight: 800; font-family: var(--fh); text-transform: uppercase; letter-spacing: .3px; }
.badge-pending   { background: #fff8e1; color: #e65100; }
.badge-approved  { background: var(--green-light); color: #00695c; }
.badge-rejected  { background: #ffebee; color: #e53935; }
.badge-suspended { background: #f3e5f5; color: #7b1fa2; }
.badge-completed { background: var(--teal-light); color: #006064; }
.badge-refunded  { background: #f3e5f5; color: #7b1fa2; }
.badge-processing{ background: var(--blue-light); color: var(--blue); }

/* ── Table ───────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  background: linear-gradient(135deg,var(--blue),var(--blue-mid));
  color: #fff; padding: 11px 14px; text-align: left;
  font-family: var(--fh); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.tbl thead th:first-child { border-radius: 8px 0 0 0; }
.tbl thead th:last-child  { border-radius: 0 8px 0 0; }
.tbl tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.tbl tbody tr:hover { background: var(--blue-light); }
.tbl tbody td { padding: 11px 14px; color: var(--text); vertical-align: middle; }

/* ── Image preview grid ──────────────────────────────────── */
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.img-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--border); }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ───────────────────────────────────────────────── */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,20,60,.5); z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; animation: fadeUp .22s ease; }
.modal { background: #fff; border-radius: var(--radius); max-width: 680px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,74,173,.22); }
.modal-head { background: linear-gradient(135deg,var(--blue),var(--teal)); padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; border-radius: var(--radius) var(--radius) 0 0; }
.modal-head h3 { font-family: var(--fh); font-size: 17px; font-weight: 900; color: #fff; }
.modal-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,.35); }
.modal-body { padding: 26px; }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* ── Tab nav inside modal ────────────────────────────────── */
.tab-nav { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--blue-light); margin-bottom: 20px; }
.tab-btn { background: var(--white); color: var(--blue); border: 1.5px solid var(--border); padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: var(--fh); cursor: pointer; transition: all .15s; }
.tab-btn.active, .tab-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Floating support button ─────────────────────────────── */
.support-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 9990;
  background: linear-gradient(135deg,var(--green),var(--teal));
  color: #fff; padding: 12px 22px; border-radius: 28px;
  text-decoration: none; font-family: var(--fh); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,137,123,.35); transition: all .2s;
}
.support-fab:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,137,123,.45); color: #fff; }

/* ── Quick link cards ────────────────────────────────────── */
.quick-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  text-decoration: none; transition: all .2s; display: block;
  box-shadow: var(--shadow);
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-card .ico  { font-size: 38px; margin-bottom: 10px; }
.quick-card .lbl  { font-family: var(--fh); font-weight: 700; font-size: 14px; }

/* ── Commission info bar ─────────────────────────────────── */
.commission-bar { background: var(--blue-light); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: 14px; color: var(--text); }
.commission-bar strong { color: var(--blue); }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 52px 24px; }
.empty-state .ico { font-size: 56px; margin-bottom: 14px; display: block; }
.empty-state h3   { font-family: var(--fh); font-size: 18px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.empty-state p    { color: var(--muted); font-size: 14px; }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width:560px) {
  .auth-body    { padding: 20px; }
  .page-hdr     { padding: 18px 20px; }
  .card         { padding: 18px; }
  .btn          { padding: 10px 18px; font-size: 13px; }
  .support-fab  { bottom: 14px; right: 14px; padding: 10px 16px; font-size: 13px; }
}
