/* ============================================================
   ShoppingMz — Vendor Portal Styles
   ============================================================ */

/* --- Vendor Landing --------------------------------------- */
.vendor-hero {
  background: var(--primary);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}
.vendor-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.vendor-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.vendor-hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.vendor-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-vhero-primary {
  background: var(--accent);
  color: var(--text);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  text-decoration: none;
}
.btn-vhero-primary:hover { background: var(--accent-dark); color: var(--text); transform: translateY(-2px); }
.btn-vhero-secondary {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  text-decoration: none;
}
.btn-vhero-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* Features grid */
.vendor-features { padding: 64px 0; background: var(--bg); }
.vendor-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vendor-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all .2s;
}
.vendor-feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.vendor-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.vendor-feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.vendor-feature-card p  { font-size: .88rem; color: var(--text-light); line-height: 1.6; }

/* --- Multi-step Registration ------------------------------ */
.registro-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 40px 0 60px;
}
.registro-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}
.registro-header {
  text-align: center;
  margin-bottom: 32px;
}
.registro-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.registro-header p  { color: var(--text-muted); font-size: .9rem; }

/* Progress Steps */
.steps-track {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  z-index: 1;
  position: relative;
}
.step-item.active .step-circle   { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-item.completed .step-circle { border-color: var(--success); background: var(--success); color: #fff; }
.step-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--primary); font-weight: 700; }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 100px;
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background .3s;
}
.step-connector.done { background: var(--success); }

/* Form Card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card-sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.step-pane { display: none; }
.step-pane.active { display: block; }

/* File Upload Area */
.upload-area {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
  position: relative;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
.upload-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.upload-sub   { font-size: .78rem; color: var(--text-muted); }
.upload-preview {
  margin-top: 12px;
  display: none;
  position: relative;
  width: 80px;
  margin-left: auto;
  margin-right: auto;
}
.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
}
.upload-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: .65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-required-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0;
  vertical-align: middle;
}

/* File name display after upload */
.file-chosen-row {
  display: none;
  align-items: center;
  gap: 8px;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: .82rem;
  margin-top: 8px;
  color: #065f46;
}
.file-chosen-row i { color: var(--success); }

/* Step navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-prev {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.btn-prev:hover { border-color: var(--text-light); color: var(--text); }
.btn-next {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.btn-next:hover { background: var(--primary-dark); }
.btn-submit-reg {
  background: var(--success);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.btn-submit-reg:hover { opacity: .9; }

/* Terms */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.terms-check input { margin-top: 2px; accent-color: var(--primary); }
.terms-check a { color: var(--primary); font-weight: 600; }

/* Success state */
.registro-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.registro-success i {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 16px;
}
.registro-success h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.registro-success p  { font-size: .92rem; color: var(--text-light); line-height: 1.6; max-width: 400px; margin: 0 auto 20px; }

/* --- Vendor Login ----------------------------------------- */
.login-page {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .site-logo-text { font-size: 1.5rem; }
.login-title { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.login-sub   { font-size: .88rem; color: var(--text-muted); text-align: center; margin-bottom: 24px; }

/* --- Dashboard -------------------------------------------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-h));
  align-items: start;
}
.dashboard-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.sidebar-vendor-info {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.sidebar-vendor-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
  margin-bottom: 8px;
}
.sidebar-vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-vendor-name   { font-size: .92rem; font-weight: 700; color: var(--text); }
.sidebar-vendor-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-top: 4px;
}
.status-approved  { background: #d1fae5; color: #065f46; }
.status-pending   { background: #fef3c7; color: #92400e; }
.status-rejected  { background: #fee2e2; color: #991b1b; }
.status-suspended { background: #e0e7ff; color: #3730a3; }

.sidebar-nav { padding: 0 12px; }
.sidebar-nav-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  padding: 8px 8px 4px;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all .2s;
  position: relative;
}
.sidebar-nav-link:hover { background: var(--surface-hover); color: var(--text); }
.sidebar-nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.sidebar-nav-link i { width: 16px; text-align: center; font-size: .9rem; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.dashboard-main { padding: 28px; }
.dashboard-greeting { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.dashboard-date { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }

/* Status banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: .9rem;
}
.status-banner.pending { background: #fef3c7; border-left: 4px solid var(--warning); color: #92400e; }
.status-banner.suspended { background: #fee2e2; border-left: 4px solid var(--danger); color: #991b1b; }
.status-banner i { font-size: 1.2rem; flex-shrink: 0; }

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: #d1fae5; color: var(--success); }
.stat-icon.purple { background: #ede9fe; color: var(--tickets-event); }
.stat-icon.amber  { background: #fef3c7; color: var(--accent); }
.stat-val  { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label{ font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.quick-action {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
  text-decoration: none;
}
.quick-action:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.quick-action.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.quick-action.primary:hover { background: var(--primary-dark); color: #fff; }

/* Table */
.data-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.data-table-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-hover); }

.ticket-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.status-pill.draft    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.status-pill.active   { background: #d1fae5; color: #065f46; }
.status-pill.paused   { background: #fef3c7; color: #92400e; }
.status-pill.ended    { background: #e0e7ff; color: #3730a3; }
.status-pill.sold_out { background: #fee2e2; color: #991b1b; }

.table-actions { display: flex; gap: 6px; }
.action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.action-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.action-btn.danger:hover { background: #fee2e2; border-color: var(--danger); color: var(--danger); }

/* --- Criar Bilhete Form ----------------------------------- */
.criar-page { padding: 32px 0 56px; }
.criar-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.type-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.type-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  background: var(--surface);
}
.type-option:hover { border-color: var(--primary); }
.type-option.selected { border-color: var(--primary); background: var(--primary-light); }
.type-option.selected.event-type     { border-color: var(--tickets-event); background: #f5f3ff; }
.type-option.selected.transport-type { border-color: var(--tickets-transport); background: #f0fdf4; }
.type-option input[type="radio"] { display: none; }
.type-icon { font-size: 1.8rem; margin-bottom: 8px; }
.type-label { font-size: .9rem; font-weight: 700; color: var(--text); }
.type-sub   { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

.criar-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.criar-section-title i { color: var(--primary); }
.specific-fields { display: none; }
.specific-fields.visible { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .vendor-features-grid { grid-template-columns: 1fr; }
  .vendor-hero-title { font-size: 1.8rem; }
  .type-selector { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-card { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .vendor-hero-title { font-size: 1.4rem; }
}
