:root {
  /* Light Theme Palette */
  --color-bg: #f8fafc;        /* Slate 50 */
  --color-card: #ffffff;      /* White */
  --color-text: #334155;      /* Slate 700 */
  --color-text-muted: #64748b;/* Slate 500 */
  --color-primary: #10b981;   /* Emerald 500 */
  --color-primary-hover: #059669; /* Emerald 600 */
  --color-border: #e2e8f0;    /* Slate 200 */
  
  --max-width: 1200px;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 72px;
  --header-height: 70px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
}

/* Reset & Basics */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-hover); }

h1, h2, h3 { margin-top: 0; color: #1e293b; }

/* Header */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-nav {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1e293b;
}
.logo { height: 48px; }

.top-actions a {
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 20px;
}
.top-actions a:hover { color: var(--color-primary); }
.top-actions .btn-primary {
  color: white !important;
}
.top-actions .btn-primary:hover {
  color: white !important;
}

/* Dashboard button with avatar */
.dashboard-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-btn-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-btn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-btn-avatar i {
  font-size: 0.75rem;
  color: white;
}

/* Auth Card */
.auth-card {
  max-width: 400px;
  margin: 80px auto;
  padding: 32px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
}
.auth-card h1 { margin-bottom: 24px; font-size: 1.75rem; }

/* Forms */
form label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
}
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

button {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover { background: var(--color-primary-hover); }

.nav-logout-btn {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-logout-btn:hover {
  background: var(--text-dark);
  color: white;
}
/* Landing Page */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to bottom, #f0fdf4, #fff);
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}
.features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.features li {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Dashboard Layout */
.dashboard-layout { display: flex; min-height: calc(100vh - var(--header-height)); }
.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--color-border);
  padding: 24px 16px;
  transition: width 0.25s;
  flex-shrink: 0;
}
.sidebar.closed { width: var(--sidebar-collapsed-width); }
.sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar nav li { margin-bottom: 8px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.sidebar nav a:hover { background: #f1f5f9; color: var(--color-primary); }
.sidebar .icon { width: 24px; text-align: center; margin-right: 12px; font-size: 1.2rem; }
.sidebar.closed .label { display: none; }
.sidebar.closed .icon { margin-right: 0; }

#hamburger {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: auto;
  padding: 4px 8px;
  margin-bottom: 20px;
  display: inline-block;
}

.content-area {
  flex: 1;
  padding: 32px;
  background: var(--color-bg);
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.header-stats {
  background: white;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 500;
}

.dashboard-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.dashboard-main section {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Tables */
.clients-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.clients-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.clients-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* Account Form */
.account-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
