/* DARK MODE (default) */
:root {
  --bg-main: linear-gradient(180deg, #0F0F12 0%, #14161B 100%);
  --surface: #1C1E23;
  --text-main: #F5F7FA;
  --text-muted: #9AA0A6;
  --brand-orange: #FF7A18;
  --brand-orange-dark: #E85F00;
  --brand-accent: #00E5FF;
}

/* LIGHT MODE */
body.light {
  --bg-main: #F4F6F8;
  --surface: #FFFFFF;
  --text-main: #0F0F12;
  --text-muted: #5F6368;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* Layout */
.app-container {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

body.light .card {
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--text-main);
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #FF7A18, #FFB347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
button, .btn {
  background: linear-gradient(135deg, #FF7A18, #FFB347);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 14px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* Inputs */
input, textarea, select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-main);
  margin-top: 8px;
}

body.light input,
body.light textarea,
body.light select {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--text-main);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Navbar */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: rgba(15,15,18,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

body.light .nav {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-orange);
}

/* Dashboard tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  color: var(--text-main);
}

body.light th,
body.light td {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

th {
  color: var(--text-muted);
  font-weight: 600;
}

.badge {
  background: rgba(255,122,24,0.15);
  color: var(--brand-orange);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Theme toggle */
.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}

body.light .theme-toggle {
  background: rgba(0,0,0,0.06);
}
