/* ═══════════════════════════════════════════════════════════════════════
   DASHBOARD ADMIN V2 - Base Styles
   Reset, Typography, Container, Header
   ═══════════════════════════════════════════════════════════════════════ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradient Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(168, 85, 247, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding: var(--space-6); }
}

/* Header - Mobile First */
header {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
  position: relative;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #A855F7, var(--success));
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

header p {
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  header h1 { font-size: 2rem; }
  header p { font-size: 1rem; }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

code {
  font-family: var(--font-mono);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-input);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body::before {
    display: none;
  }

  .sidebar,
  .preview-panel,
  button,
  .modal-backdrop {
    display: none !important;
  }

  .content-panel {
    background: white;
    color: black;
  }
}
