/* BerryViral Design System - Simplified CSS Custom Properties */
/*
  === BERRYVIRAL COLOR SYSTEM ===
  - Black: #02010aff (main backgrounds)
  - Russian Violet: #14042eff (surface backgrounds)
  - Federal Blue: #000f58ff (elevated elements)
  - Violet: #7e07edff (primary actions)
  - Mint: #0eb982ff (secondary actions)
*/

/* === MAIN THEME ROOT === */
:root {
  /* === BRAND COLORS === */
  --black: #02010aff;           /* Main backgrounds */
  --russian-violet: #14042eff;  /* Surface backgrounds */
  --federal-blue: #000f58ff;    /* Elevated elements */
  --violet: #7e07edff;          /* Primary actions */
  --mint: #0eb982ff;            /* Secondary actions */

  /* === DARK MODE SYSTEM === */
  --bg-app: #02010aff;           /* Black - Main app background */
  --bg-surface: #14042eff;       /* Russian violet - Cards, panels */
  --bg-elevated: #000f58ff;      /* Federal blue - Elevated elements */

  /* === TEXT HIERARCHY === */
  --text-primary: #F8FAFC;     /* Primary text */
  --text-secondary: #E2E8F0;   /* Body text */
  --text-tertiary: #94A3B8;    /* Captions, labels */

  /* === BORDER SYSTEM === */
  --border-subtle: #334155;    /* Subtle dividers */
  --border-default: #475569;   /* Default borders */
  --border-brand: #7e07edff;   /* Brand colored borders */

  /* === SHADOW SYSTEM === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(126, 7, 237, 0.15);

  /* === EXTENDED TEXT COLORS === */
  --text-muted: #64748B;       /* Muted text for placeholders */

  /* === BERRY COLOR PALETTE === */
  --berry-primary-400: #a855f7;
  --berry-primary-500: #7e07edff;
  --berry-primary-600: #6b06c7;
  --berry-green-300: #86efac;
  --berry-green-400: #4ade80;
  --berry-green-500: #0eb982ff;
  --berry-green-600: #059669;

  /* === GRADIENTS === */
  --gradient-primary: linear-gradient(135deg, #7e07edff 0%, #6b06c7 100%);
  --gradient-accent: linear-gradient(135deg, #0eb982ff 0%, #7e07edff 100%);
  --gradient-hero: linear-gradient(135deg, #02010aff 0%, #14042eff 50%, #000f58ff 100%);
  --gradient-card: linear-gradient(135deg, #14042eff 0%, #000f58ff 100%);

  /* === SLATE COLORS === */
  --slate-900: #0f172a;

  /* === SPACING === */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* === BORDER RADIUS === */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* === TRANSITIONS === */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;

  /* === TYPOGRAPHY === */
  --font-family-primary: 'Noto Sans', sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* === GLOBAL DARK MODE STYLES === */
body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === HEADING STYLES === */
h1, h2, h3 {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* === TEXT UTILITIES === */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* === BORDER UTILITIES === */
.border-subtle { border-color: var(--border-subtle); }
.border-default { border-color: var(--border-default); }

/* === COMPONENT BASE STYLES === */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

/* Custom violet hover for dashboard widget buttons */
.custom-violet-hover:hover, .custom-violet-hover:focus {
  background-color: #7e07edff !important;
  color: #fff !important;
  transition: background-color 150ms;
}

.custom-violet-border-hover:hover, .custom-violet-border-hover:focus {
  border: 1px solid #7e07edff !important;
  color: #fff !important;
  transition: border 150ms;
}

.card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-md);
}

/* === BUTTON STYLES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--violet);
  color: white;
}

.btn-primary:hover {
  background: #6b06c7;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  border-color: var(--violet);
  background: var(--bg-elevated);
}

/* === INPUT STYLES === */
.input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  transition: var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(126, 7, 237, 0.1);
}

.input::placeholder {
  color: var(--text-tertiary);
}

/* === BASIC ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }

/* === RESPONSIVE UTILITIES === */
@media (max-width: 767px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }

  .btn {
    min-height: 44px;
    padding: var(--space-md) var(--space-lg);
  }
}

/* === DASHBOARD SPECIFIC STYLES === */

.bg-gray-750 {
  background-color: #374151;
}

.hover\:bg-gray-750:hover {
  background-color: #374151;
}