/* =========================================================
   CriarBordados.com — Design System Premium
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --brand-1: #7C3AED;     /* violeta vibrante */
  --brand-2: #EC4899;     /* rosa magenta */
  --brand-3: #F59E0B;     /* âmbar / fios dourados */
  --brand-grad: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --brand-grad-alt: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);

  /* Dark theme */
  --bg: #0D0D0F;
  --bg-card: #141418;
  --bg-card-2: #1C1C24;
  --bg-input: #1a1a22;
  --border: rgba(255,255,255,0.07);
  --border-brand: rgba(124,58,237,0.35);

  /* Text */
  --text-primary: #F5F5F7;
  --text-secondary: #A0A0B0;
  --text-muted: #5A5A6E;

  /* Feedback */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Spacing / radius */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-brand: 0 4px 30px rgba(124,58,237,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--brand-1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand-1); border-radius: 3px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary);
}
.navbar-brand .dot { color: var(--brand-2); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  color: var(--text-secondary); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text-primary); }
.btn-nav {
  background: var(--brand-grad);
  color: #fff !important;
  padding: .5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .875rem;
}
.btn-nav:hover { opacity: .9; color: #fff !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: none; transition: all .2s; font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 35px rgba(124,58,237,0.4); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand-1); color: var(--brand-1); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: .9; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { opacity: .9; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border-brand); }
.card-glass {
  background: rgba(28,28,36,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-label { font-size: .875rem; font-weight: 500; color: var(--text-secondary); }
.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: .75rem 1rem;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* ── Badges / Status ── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.badge-success { background: rgba(16,185,129,.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-info    { background: rgba(59,130,246,.15); color: var(--info); }
.badge-primary { background: rgba(124,58,237,.15); color: var(--brand-1); }
.badge-secondary { background: rgba(255,255,255,.08); color: var(--text-secondary); }

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .9rem; border: 1px solid transparent;
  display: flex; align-items: flex-start; gap: .75rem;
}
.alert-success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6EE7B7; }
.alert-danger  { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #FCA5A5; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #FCD34D; }
.alert-info    { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #93C5FD; }

.flash-messages { position: fixed; top: 80px; right: 1.5rem; z-index: 2000; min-width: 320px; display: flex; flex-direction: column; gap: .5rem; }
.flash-item {
  padding: .9rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  backdrop-filter: blur(20px);
  animation: slideIn .3s ease;
  display: flex; align-items: flex-start; gap: .5rem;
  cursor: pointer;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: .75rem 1rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: .9rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.stat-card .stat-label { font-size: .8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; font-family: 'Sora', sans-serif; }
.stat-card .stat-icon { font-size: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding-top: 5rem; min-height: 100vh; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ── Sidebar Layout ── */
.app-layout { display: flex; min-height: 100vh; padding-top: 64px; }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: fixed; top: 64px; left: 0; bottom: 0;
  overflow-y: auto;
}
.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; padding: 0 .75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .875rem; font-weight: 500;
  transition: all .2s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.sidebar-link.active { background: rgba(124,58,237,0.15); color: var(--brand-1); }
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-section { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 1rem 1.75rem .5rem; }
.main-content { margin-left: 260px; flex: 1; padding: 2rem; }

/* ── Upload Drop Zone ── */
.dropzone {
  border: 2px dashed var(--border-brand);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: rgba(124,58,237,0.03);
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--brand-1);
  background: rgba(124,58,237,0.08);
}
.dropzone input[type=file] { display: none; }
.dropzone-icon { font-size: 3rem; margin-bottom: 1rem; }
.dropzone-text { color: var(--text-secondary); font-size: .9rem; }
.dropzone-text strong { color: var(--brand-1); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Tabs ── */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .75rem 1.25rem; font-size: .875rem; font-weight: 500;
  color: var(--text-secondary); border: none; background: none;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--brand-1); border-bottom-color: var(--brand-1); }

/* ── Progress steps ── */
.steps { display: flex; gap: 0; margin-bottom: 2rem; }
.step-item { flex: 1; position: relative; }
.step-item:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: 50%; width: 100%;
  height: 2px; background: var(--border);
}
.step-item.done::after { background: var(--brand-1); }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; margin: 0 auto .5rem;
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); position: relative; z-index: 1;
}
.step-item.active .step-circle { border-color: var(--brand-1); color: var(--brand-1); background: rgba(124,58,237,.1); }
.step-item.done .step-circle { border-color: var(--brand-1); background: var(--brand-1); color: #fff; }
.step-label { text-align: center; font-size: .75rem; color: var(--text-muted); }
.step-item.active .step-label, .step-item.done .step-label { color: var(--brand-1); }

/* ── Misc ── */
.text-gradient { background: var(--brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-sm); }
.font-mono { font-family: 'Courier New', monospace; }

/* ── Glow decorations ── */
.glow-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: .15;
}
.glow-purple { background: var(--brand-1); }
.glow-pink { background: var(--brand-2); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 1rem; }
  .nav-links .hide-mobile { display: none; }
}
