/* ============================================================
   MindSpan Custom Base — Unified CSS Variables
   Single source of truth for the brand color scheme.
   Load this BEFORE any page-specific custom CSS file.
   ============================================================ */

:root {
    /* ── Primary brand colors ──
       Muted, professional indigo — calmer than vibrant blue, still
       carries trust/brand weight without screaming. */
    --primary: #3949ab;
    --primary-color: #3949ab;
    --primary-dark: #283593;
    --primary-light: #e8eaf6;
    --primary-subtle: rgba(57, 73, 171, 0.08);

    /* ── Secondary / neutral ── */
    --secondary: #5f6368;
    --secondary-color: #5f6368;
    --secondary-light: #f1f5f9;

    /* ── State colors ── */
    --success: #28a745;
    --success-color: #28a745;
    --info: #4285f4;
    --info-color: #4285f4;
    --warning: #fbbc05;
    --warning-color: #ffc107;
    --danger: #ea4335;
    --danger-color: #dc3545;

    /* ── Accent ── */
    --accent: #ffc107;
    --accent-color: #e11d48;

    /* ── Text ── */
    --text-color: #2b2d42;
    --text-primary: #202124;
    --text-secondary: #5f6368;

    /* ── Backgrounds ── */
    --light: #f8f9fa;
    --light-color: #f8f9fa;
    --dark: #202124;
    --dark-color: #212529;
    --white: #ffffff;

    /* ── Gradients ── */
    --gradient-primary: linear-gradient(135deg, #3949ab 0%, #283593 100%);
    --gradient-secondary: linear-gradient(90deg, #4e54c8, #8f94fb);

    /* ── Shadows ── */
    --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    --card-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    --hover-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
                    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* ── Border radius ── */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-pill: 50rem;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;

    /* ── Border ── */
    --border-color: #e2e8f0;
    --border: #e5e7eb;

    /* ── Misc ── */
    --transition: all 0.2s ease;

    /* Bootstrap Primary override — keep Bootstrap utilities in lock-step
       with the brand color so .bg-primary, .text-primary, .border-primary
       etc. all use the muted indigo. */
    --bs-primary: #3949ab;
    --bs-primary-rgb: 57, 73, 171;
}

/* ============================================================
   Contrast safety net for tinted indigo backgrounds
   ============================================================
   Some templates use `bg-primary bg-opacity-10` (or `bg-primary-subtle`)
   as a soft circular badge with a `text-primary` icon inside. With our
   muted indigo (`#3949ab`), the 10% tint is darker than Bootstrap's
   default light-blue, so the same-color icon disappears.

   These rules force any tinted indigo container to use a near-white
   tint and a saturated-but-readable icon, keeping the design subtle
   while restoring contrast. */
.bg-primary.bg-opacity-10,
.bg-primary-subtle {
    background-color: rgba(57, 73, 171, 0.08) !important;
}
.bg-primary.bg-opacity-10 .text-primary,
.bg-primary.bg-opacity-10 > i.fa,
.bg-primary.bg-opacity-10 > i.fas,
.bg-primary.bg-opacity-10 > i.far,
.bg-primary.bg-opacity-10 > i.fab,
.bg-primary-subtle .text-primary,
.bg-primary-subtle > i.fa,
.bg-primary-subtle > i.fas,
.bg-primary-subtle > i.far,
.bg-primary-subtle > i.fab {
    color: var(--primary-dark) !important;
}

/* Same safety for warning/info/success tinted circles in case any
   page reuses the pattern with our updated palette. */
.bg-warning.bg-opacity-10 .text-warning,
.bg-warning-subtle .text-warning {
    color: #b45309 !important; /* amber-700 — readable on light yellow */
}
.bg-success.bg-opacity-10 .text-success,
.bg-success-subtle .text-success {
    color: #15803d !important; /* green-700 */
}
.bg-info.bg-opacity-10 .text-info,
.bg-info-subtle .text-info {
    color: #0e7490 !important; /* cyan-700 */
}
.bg-danger.bg-opacity-10 .text-danger,
.bg-danger-subtle .text-danger {
    color: #b91c1c !important; /* red-700 */
}

/* ============================================================
   Header Sign-in / Sign-up — consistent compact size
   ============================================================
   The default style.css has these at 150px/14px which renders
   chunky on inner pages while the home page slimmed them down.
   Standardize on the compact sizing site-wide. */
.header-navbar-rht li a.header-sign,
.header-navbar-rht li a.header-login {
    min-width: 110px !important;
    padding: 9px 20px !important;
    font-size: 14px;
    line-height: 1.2;
}

/* Outline-style sign-in (default colour) */
.header-navbar-rht li a.header-sign {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
}

