/* ==========================================================================
   Shared Styles - Design Tokens & Base Styles
   Used by both client and admin portals
   ========================================================================== */

/* Design Tokens */
:root {
  /* Brand Colors */
  --brand-700: #0A65CC;
  --brand-600: #1C7AED;
  --brand-500: #3B82F6;
  --brand-100: #E9F3FF;

  /* Neutrals */
  --ink-900: #0E1B2E;
  --ink-800: #1C2740;
  --ink-700: #344561;
  --ink-500: #6B7380;
  --line: #E6EAF0;

  /* Status Colors */
  --green-700: #1B6B37;
  --green-100: #EAF7EE;
  --amber-700: #9B6A10;
  --amber-100: #FFF4DD;
  --red-700: #9A1E1E;
  --red-100: #FCEAEA;

  /* Surfaces */
  --bg: #F6F8FB;
  --panel: #FFFFFF;
  --panel-alt: #FAFBFF;
  --surface: #FFFFFF;
  --border: #E5E7EB;

  /* Shape & Effects */
  --radius: 12px;
  --radius-xl: 16px;
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, .12);
  --shadow: 0 12px 28px rgba(15, 23, 42, .08);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, .06);
  --focus: 0 0 0 3px rgba(28, 122, 237, .25);

  /* Layout */
  --container: 1480px;
  --gutter: 20px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink-700);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  color: var(--ink-900);
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-700);
}

img {
  max-width: 100%;
  display: block;
}

/* Buttons */
button {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid #D8DFEA;
  border-radius: var(--radius);
  font-weight: 700;
  padding: .75rem 1rem;
  cursor: pointer;
  color: #10203A;
  background: #EEF2F7;
  transition: all .15s ease;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(0.97);
}

.btn.primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border-color: #9FC6FF;
  box-shadow: 0 4px 12px rgba(28, 122, 237, .25);
}

.btn.outline {
  background: #fff;
  border: 1px solid var(--border);
}

.btn.small {
  padding: .4rem .65rem;
  font-size: .9rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Utility Classes */
.muted {
  color: var(--ink-500);
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }
}