/* ===============================================================
   TailorEase - Luxury Modern Theme
   Manyavar x Notion inspired. Navy + Gold + Cream.
   =============================================================== */

:root {
  --primary: #0A1628;
  --primary-light: #12213A;
  --accent: #C9963B;
  --accent-light: #F0C87A;
  --accent-dark: #A87B2A;
  --surface: #F7F4EE;
  --surface-dark: #12213A;
  --bg: #FBF9F4;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: rgba(201, 150, 59, 0.18);
  --success: #2ECC71;
  --danger: #E74C3C;
  --warning: #F39C12;
  --info: #3498DB;

  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.04);
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-pill: 50px;
}

[data-theme="dark"] {
  --bg: #0A1628;
  --surface: #12213A;
  --surface-dark: #0A1628;
  --text: #F7F4EE;
  --text-muted: #9CA3AF;
  --border: rgba(201, 150, 59, 0.25);
}

* { box-sizing: border-box; }

html, body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .te-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
}

code, pre, .te-mono { font-family: 'JetBrains Mono', monospace; }

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

/* ----- Animations ----- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.te-fade { animation: fadeIn .5s ease forwards; }

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* ----- Navbar (public) ----- */
.te-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.te-navbar .te-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: 1px;
}
.te-navbar .te-logo span { color: var(--accent); }

/* ----- Buttons ----- */
.btn-te-primary {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all .25s;
}
.btn-te-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,150,59,0.35);
}
.btn-te-secondary {
  background: var(--primary);
  color: var(--accent-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 500;
  transition: all .25s;
}
.btn-te-secondary:hover {
  background: var(--primary-light);
  color: var(--accent);
}
.btn-te-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-weight: 500;
  transition: all .25s;
}
.btn-te-outline:hover {
  background: var(--accent);
  color: var(--primary);
}
.btn-te-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
}
.btn-te-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
}
.btn-te-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ----- Cards ----- */
.te-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
[data-theme="dark"] .te-card { background: var(--surface); }
.te-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.te-stat-card {
  background: linear-gradient(135deg, #fff 0%, var(--surface) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .te-stat-card { background: linear-gradient(135deg, var(--surface) 0%, var(--surface-dark) 100%); }
.te-stat-card .te-stat-label {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.te-stat-card .te-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
[data-theme="dark"] .te-stat-card .te-stat-value { color: var(--accent-light); }
.te-stat-card .te-stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 150, 59, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  float: right;
}

/* ----- Forms ----- */
.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e5e7eb;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,150,59,0.12);
}
.form-floating > label { color: var(--text-muted); }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e5e7eb;
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,150,59,0.12);
}
.form-label { color: var(--text); font-weight: 500; font-size: 14px; }

/* ----- Tables ----- */
.te-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-collapse: collapse;
}
[data-theme="dark"] .te-table { background: var(--surface); }
.te-table thead th {
  background: var(--primary);
  color: var(--accent-light);
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}
.te-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.te-table tbody tr:nth-child(even) { background: rgba(247, 244, 238, 0.4); }
[data-theme="dark"] .te-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.te-table tbody tr:hover { background: rgba(201, 150, 59, 0.08); }
.te-table td { padding: 14px 16px; vertical-align: middle; }
.te-table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ----- Badges ----- */
.te-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ----- Sidebar layout ----- */
.te-app {
  display: flex;
  min-height: 100vh;
}
.te-sidebar {
  width: 250px;
  background: var(--primary);
  color: var(--accent-light);
  padding: 20px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: transform .3s;
  z-index: 60;
}
.te-sidebar .te-sidebar-brand {
  padding: 0 22px 18px;
  border-bottom: 1px solid rgba(201,150,59,0.18);
  margin-bottom: 14px;
}
.te-sidebar .te-sidebar-brand h2 {
  color: var(--accent);
  font-size: 26px;
  margin: 0;
}
.te-sidebar .te-sidebar-brand small { color: var(--text-muted); font-size: 11px; letter-spacing: 1px; }
.te-sidebar a.te-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: rgba(247,244,238,0.78);
  border-left: 3px solid transparent;
  transition: all .2s;
  font-size: 14.5px;
}
.te-sidebar a.te-nav:hover {
  background: rgba(201, 150, 59, 0.08);
  color: var(--accent-light);
  border-left-color: rgba(201,150,59,0.4);
}
.te-sidebar a.te-nav.active {
  background: rgba(201, 150, 59, 0.14);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}
.te-sidebar a.te-nav i { width: 18px; height: 18px; }
.te-sidebar .te-nav-section {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 22px 6px;
}

.te-content {
  margin-left: 250px;
  flex: 1;
  padding: 28px 36px;
  min-height: 100vh;
}
.te-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.te-topbar h1 { margin: 0; font-size: 28px; }
.te-mobile-toggle { display: none; background: var(--primary); color: var(--accent); border: none; border-radius: 8px; padding: 8px 10px; }

@media (max-width: 991px) {
  .te-sidebar { transform: translateX(-100%); }
  .te-sidebar.open { transform: translateX(0); }
  .te-content { margin-left: 0; padding: 18px; }
  .te-mobile-toggle { display: inline-block; }
}

/* ----- Hero ----- */
.te-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(201,150,59,0.12) 0%, transparent 40%),
    linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  padding: 80px 0;
}
.te-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.te-hero .te-accent { color: var(--accent); font-style: italic; }
.te-hero p.lead { color: var(--text-muted); font-size: 18px; max-width: 540px; }

/* ----- Plan Cards ----- */
.te-plan-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: all .3s;
  height: 100%;
}
.te-plan-card.featured {
  background: var(--primary);
  color: var(--accent-light);
  border: 2px solid var(--accent);
  transform: scale(1.03);
}
.te-plan-card.featured h3, .te-plan-card.featured .te-plan-price { color: var(--accent); }
.te-plan-card .te-plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 12px 0;
}
.te-plan-card .te-plan-price small { font-size: 16px; color: var(--text-muted); }
.te-plan-card ul { list-style: none; padding: 0; text-align: left; margin: 20px 0; }
.te-plan-card ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}
.te-plan-card ul li::before { content: "✓ "; color: var(--accent); font-weight: bold; margin-right: 6px; }
.te-plan-card .te-qr {
  width: 120px;
  height: 120px;
  margin: 14px auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  object-fit: contain;
}

/* ----- Kanban ----- */
.te-kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; }
.te-kanban-col { min-width: 260px; max-width: 280px; background: var(--surface); border-radius: var(--radius); padding: 12px; border: 1px solid var(--border); }
.te-kanban-col h6 { color: var(--primary); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.te-kanban-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s;
}
.te-kanban-card:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ----- Stepper / timeline ----- */
.te-stepper { display: flex; flex-wrap: wrap; gap: 4px; }
.te-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 12px 8px;
  background: var(--surface);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
}
.te-step.done { background: var(--accent); color: var(--primary); font-weight: 600; }
.te-step.current { background: var(--primary); color: var(--accent); font-weight: 600; }

/* ----- Alerts ----- */
.te-alert {
  border-radius: var(--radius-sm);
  border: none;
  padding: 14px 18px;
  border-left: 4px solid;
}
.alert-success.te-alert { background: rgba(46,204,113,0.08); border-left-color: var(--success); color: #14613b; }
.alert-danger.te-alert  { background: rgba(231,76,60,0.08);  border-left-color: var(--danger);  color: #8b2519; }
.alert-warning.te-alert { background: rgba(243,156,18,0.08); border-left-color: var(--warning); color: #7a4d05; }
.alert-info.te-alert    { background: rgba(52,152,219,0.08); border-left-color: var(--info);    color: #1f5680; }

/* ----- Footer ----- */
.te-footer {
  background: var(--primary);
  color: var(--accent-light);
  padding: 50px 0 20px;
  margin-top: 80px;
}
.te-footer a { color: rgba(247,244,238,0.7); }
.te-footer a:hover { color: var(--accent); }
.te-footer h6 { color: var(--accent); margin-bottom: 16px; }

/* ----- Loyalty card ----- */
.te-loyalty-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.te-loyalty-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.18;
}
.te-loyalty-card .te-tier {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}
.te-loyalty-card .te-points {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 700;
}

/* ----- Login / Auth pages ----- */
.te-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(201,150,59,0.15), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(10,22,40,0.05), transparent 50%),
    var(--surface);
  padding: 30px 16px;
}
.te-auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  border: 1px solid var(--border);
}

/* ----- Progress bar (multi-step) ----- */
.te-progress { display: flex; align-items: center; margin-bottom: 32px; }
.te-progress .te-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e5e7eb; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.te-progress .te-step-circle.active { background: var(--accent); color: var(--primary); }
.te-progress .te-step-circle.done { background: var(--primary); color: var(--accent); }
.te-progress .te-step-line { flex: 1; height: 3px; background: #e5e7eb; margin: 0 8px; }
.te-progress .te-step-line.done { background: var(--accent); }

/* ----- Utility ----- */
.te-mb-4 { margin-bottom: 1.5rem; }
.te-mt-4 { margin-top: 1.5rem; }
.te-divider { height: 1px; background: var(--border); margin: 24px 0; }
.te-section { padding: 60px 0; }
.te-section-title { text-align: center; margin-bottom: 50px; }
.te-section-title h2 { font-size: 42px; }
.te-section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.te-text-muted { color: var(--text-muted); }
.te-text-accent { color: var(--accent); }
.te-text-primary { color: var(--primary); }
.te-bg-surface { background: var(--surface); }

/* Lucide icon default size */
[data-lucide] { width: 18px; height: 18px; vertical-align: -3px; }
