/* Sanctra AI — Main Stylesheet */

:root {
  --bg-dark:      #0a0a0f;
  --bg-card:      #13131a;
  --bg-card-2:    #1a1a24;
  --border:       #2a2a3a;
  --accent:       #6c63ff;
  --accent-light: #8b85ff;
  --accent-glow:  rgba(108, 99, 255, 0.18);
  --text-primary: #f0f0f6;
  --text-secondary: #9090aa;
  --text-muted:   #606080;
  --success:      #22c55e;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); letter-spacing: -.5px; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; border-color: var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); color: var(--accent-light); }
.btn-sm { padding: 7px 16px; font-size: .875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 20px; }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(108,99,255,.12) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block; background: var(--accent-glow); color: var(--accent-light);
  border: 1px solid rgba(108,99,255,.3); border-radius: 50px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Features ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: .9rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
}
.pricing-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 50px;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pricing-price { font-size: 2.2rem; font-weight: 800; margin: 12px 0; }
.pricing-price span { font-size: .9rem; font-weight: 400; color: var(--text-secondary); }
.pricing-desc { color: var(--text-secondary); font-size: .85rem; margin-bottom: 16px; flex: 1; }
.pricing-features { list-style: none; margin-bottom: 20px; }
.pricing-features li { font-size: .875rem; color: var(--text-secondary); padding: 4px 0; }
.pricing-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary); font-size: .95rem;
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.form-control::placeholder { color: var(--text-muted); }

.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,.1) 0%, transparent 60%);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 32px; font-size: 1.5rem; font-weight: 800; }
.auth-logo span { color: var(--accent); }
.auth-box .card { padding: 36px; }
.auth-box h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-box p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--text-secondary); }

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: .9rem; margin-bottom: 20px;
}
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.alert-danger  { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; }
.alert-info    { background: rgba(108,99,255,.1); border: 1px solid rgba(108,99,255,.3); color: var(--accent-light); }

/* ---- Section Titles ---- */
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--text-secondary); font-size: 1rem; margin-bottom: 44px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ---- Dashboard ---- */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.dashboard-sidebar {
  width: 240px; background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 28px 0; flex-shrink: 0;
}
.sidebar-logo { padding: 0 24px 28px; font-size: 1.1rem; font-weight: 800; border-bottom: 1px solid var(--border); }
.sidebar-logo span { color: var(--accent); }
.sidebar-nav { list-style: none; padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  color: var(--text-secondary); font-size: .9rem; font-weight: 500;
  transition: all .15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--accent-glow); color: var(--accent-light);
}
.dashboard-main { flex: 1; padding: 36px; overflow-y: auto; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 1.6rem; font-weight: 800; }
.dashboard-header p { color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ---- Tables ---- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:hover { background: var(--bg-card-2); }
tbody td { padding: 12px 14px; color: var(--text-secondary); }
tbody td:first-child { color: var(--text-primary); }

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
}
.badge-success { background: rgba(34,197,94,.15); color: #4ade80; }
.badge-danger  { background: rgba(239,68,68,.15);  color: #f87171; }
.badge-warning { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-info    { background: rgba(108,99,255,.15); color: var(--accent-light); }
.badge-muted   { background: rgba(144,144,170,.1); color: var(--text-muted); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  color: var(--text-muted); font-size: .85rem;
}
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }

/* ---- Utilities ---- */
.mt-1 { margin-top: 8px; }   .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .gap-2 { gap: 12px; } .align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .875rem; }
.w-100 { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .dashboard-sidebar { display: none; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
}
