/* ==========================================================================
   ColorsVariable.css — the single place to change the platform's colors.

   Every theme stylesheet (admin, instructor, frontend, course player,
   payment) imports this file and uses these variables. Change a value
   here and it updates everywhere. Transparent shades are derived
   automatically, so each color needs only one value.

   The RTL (Arabic) stylesheets import this same file, so there is
   nothing to regenerate after changing a color.
   ========================================================================== */

:root {
    /* ---------- Brand ---------- */
    --primary: #254A48;         /* main brand color: buttons, links, active items */
    --primary-dark: #4B7A78;    /* hover / pressed state of primary */
    --primary-light: #E9DAC5B9EDED;   /* soft brand tint: badges, highlighted backgrounds */
    --accent: #4B7A78;          /* second brand color, used in gradients */
    --accent-light: #B5B3BA;    /* soft tint of accent */
    --beige: #DAC5B9;  
        --beige-bold: #92573E;           
    /* ---------- Text ---------- */
    --heading: #221F1F;         /* titles and headings */
    --text: #676972;            /* body text (kept darker than the palette grays for readability) */
    --text-dark: #3f3d42;       /* stronger body text, admin labels */
    --muted: #81838F;           /* placeholders, hints, disabled text */

    /* ---------- Surfaces & borders ---------- */
    --white: #ffffff;
    --black: #000000;
    --body-bg: color-mix(in srgb, var(--beige) 15%, var(--white));     /* page background (warm off-white) */
    --surface-alt: color-mix(in srgb, var(--beige) 30%, var(--white)); /* alternate card / section background */
    --border: color-mix(in srgb, var(--beige) 45%, var(--white));      /* default borders and dividers */
    --border-dark: #B5B3B9;     /* stronger borders, inputs */
    --dark-bg: #221F1F;         /* dark sections, footer, overlays */

    /* ---------- Status ---------- */
    --success: #50cd89;
    --success-dark: #13a06f;
    --success-light: #e8fff3;
    --danger: #f1416c;
    --danger-dark: #c8102e;
    --danger-light: #fff5f8;
    --warning: #ffc700;         /* also rating stars */
    --warning-dark: #f59e0b;
    --warning-light: #fff8dd;
    --info: #36b9f5;
    --info-light: #e1f5ff;

    /* ---------- Extra accents ---------- */
    --orange: #AD5038;          /* warm brand accent (terracotta) */
    --orange-light: #BD6955;    /* lighter terracotta: hover state of orange */
    --teal: #4A7978;

    /* ---------- Home page values strip (Quality, Empowerment, ...) ---------- */
    --features-bg: var(--accent);                 /* strip background */
    --features-text: var(--white);                /* titles and descriptions */
    --features-divider: color-mix(in srgb, var(--white) 45%, transparent); /* lines between items */
    --features-hover-bg: var(--primary);          /* item background on hover */

    /* ---------- Footer (built from the brand colors above) ---------- */
    --footer-bg-start: var(--primary);          /* top of the footer gradient */
    --footer-bg-end: var(--dark-bg);            /* bottom of the footer gradient */
    --footer-heading: var(--white);             /* column titles, button text */
    --footer-text: var(--border);               /* paragraphs, links, copyright */
    --footer-link-hover: var(--white);          /* links and icons on hover */
    --footer-accent: var(--orange);             /* buttons, newsletter submit, social hover */
    --footer-accent-hover: var(--accent);       /* hover state of footer buttons */
    --footer-input-border: var(--border-dark);  /* newsletter email field */
    --footer-divider: color-mix(in srgb, var(--white) 15%, transparent); /* lines and icon borders */

    /* ---------- Social brands (keep official colors) ---------- */
    --facebook: #1877f2;
    --linkedin: #0077b5;
    --whatsapp: #25d366;

    /* ---------- Bootstrap: follow the palette above ---------- */
    --bs-primary: var(--primary);
    --bs-success: var(--success);
    --bs-danger: var(--danger);
    --bs-warning: var(--warning);
    --bs-info: var(--info);
    --bs-body-color: var(--text);
    --bs-heading-color: var(--heading);
    --bs-border-color: var(--border);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
}

/* Default links (theme rules that style specific links still take precedence) */
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* Bootstrap components hard-code their colors per class, so point them at the palette too */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.form-control:focus, .form-select:focus {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--white));
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--primary) 25%, transparent);
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.page-link { color: var(--primary); }
.active > .page-link, .page-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
}
.nav-pills .nav-link.active { background-color: var(--primary); }
