:root {
    /* Colors */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* Backgrounds */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #ffffff;

    /* Borders */
    --border-color: #e2e8f0;
    --border-radius: 0.5rem;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    /* Theme-specific UI variables (editable via /admin/theme) */
    --header-bg: #4f46e5;
    --button-bg: #4f46e5;
    --menu-text: #1e293b;
    --header-name-color: #ffffff;
    --header-text-color: #ffffff;
}

/* Preview styles for the Theme editor */
.theme-preview .preview-header {
  background-color: var(--header-bg);
  color: var(--header-text-color);
}
.theme-preview .preview-logo {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.15);
}
.theme-preview .preview-header-name {
  font-weight: 600;
  color: var(--header-name-color);
}
.theme-preview .preview-menu-text {
  color: var(--menu-text);
}
.theme-preview .preview-btn {
  background-color: var(--button-bg);
  color: var(--text-light);
  border: none;
}

/* Small helper to make hex readouts easier to scan */
.text-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; }

/* Apply theme variables to main navbar */
.navbar-custom-theme {
  background-color: var(--header-bg) !important;
}
.navbar-custom-theme .navbar-brand,
.navbar-custom-theme .nav-link,
.navbar-custom-theme .dropdown-toggle {
  color: var(--header-text-color) !important;
}
.navbar-custom-theme .preview-btn {
  background-color: var(--button-bg) !important;
  color: var(--text-light) !important;
}
