/*
 * Team colours (App\Support\TeamColor). Loaded on every page by layouts/app.blade.php.
 *
 * 1. `team-{key}` sets custom properties for the newer designs:
 *    --team (bars, dots), --team-soft (tinted backgrounds), --team-ink (text on white or the tint),
 *    --team-on (text on a solid --team background).
 * 2. The theme (app.css) already has bg-/text-/badge-/border- classes for the first nine colours.
 *    The same four are added here for the seven newer ones, so older pages can use any key.
 */

.team-cyan     { --team: #00cfd5; --team-soft: #e0f9fa; --team-ink: #00686c; --team-on: #fff; }
.team-purple   { --team: #6900c7; --team-soft: #f3ecfb; --team-ink: #5a00ab; --team-on: #fff; }
.team-blue     { --team: #0061f2; --team-soft: #e6effe; --team-ink: #0050c8; --team-on: #fff; }
.team-yellow   { --team: #f4a100; --team-soft: #fdf3dc; --team-ink: #7a4f00; --team-on: #fff; }
.team-orange   { --team: #f76400; --team-soft: #fff0e5; --team-ink: #a34200; --team-on: #fff; }
.team-red      { --team: #e81500; --team-soft: #fde8e6; --team-ink: #b31000; --team-on: #fff; }
.team-teal     { --team: #00ba94; --team-soft: #e0f7f1; --team-ink: #00715a; --team-on: #fff; }
.team-pink     { --team: #e30059; --team-soft: #fde6ef; --team-ink: #b0004a; --team-on: #fff; }
.team-black    { --team: #1f2d41; --team-soft: #e9ecf1; --team-ink: #1f2d41; --team-on: #fff; }
.team-forest   { --team: #367d1e; --team-soft: #e6f2e1; --team-ink: #285c16; --team-on: #fff; }
.team-brown    { --team: #8b5a2b; --team-soft: #f4ece4; --team-ink: #6b4420; --team-on: #fff; }
.team-maroon   { --team: #8e1b3f; --team-soft: #f9e6ec; --team-ink: #8e1b3f; --team-on: #fff; }
.team-sky      { --team: #4da3ff; --team-soft: #e5f1ff; --team-ink: #1f5fa8; --team-on: #1f2d41; }
.team-olive    { --team: #7a7400; --team-soft: #f3f2d9; --team-ink: #5a5600; --team-on: #fff; }
.team-lavender { --team: #a77bf0; --team-soft: #f1eafd; --team-ink: #6a3fc0; --team-on: #1f2d41; }
.team-slate    { --team: #66788a; --team-soft: #eef1f4; --team-ink: #4a5868; --team-on: #fff; }

/* Theme-style classes for the newer colours. Text classes use the darker ink so they read on white. */

.bg-forest   { background-color: #367d1e !important; }
.bg-brown    { background-color: #8b5a2b !important; }
.bg-maroon   { background-color: #8e1b3f !important; }
.bg-sky      { background-color: #4da3ff !important; }
.bg-olive    { background-color: #7a7400 !important; }
.bg-lavender { background-color: #a77bf0 !important; }
.bg-slate    { background-color: #66788a !important; }

.text-forest   { color: #367d1e !important; }
.text-brown    { color: #8b5a2b !important; }
.text-maroon   { color: #8e1b3f !important; }
.text-sky      { color: #1f5fa8 !important; }
.text-olive    { color: #5a5600 !important; }
.text-lavender { color: #6a3fc0 !important; }
.text-slate    { color: #4a5868 !important; }

.border-forest   { border-color: #367d1e !important; }
.border-brown    { border-color: #8b5a2b !important; }
.border-maroon   { border-color: #8e1b3f !important; }
.border-sky      { border-color: #4da3ff !important; }
.border-olive    { border-color: #7a7400 !important; }
.border-lavender { border-color: #a77bf0 !important; }
.border-slate    { border-color: #66788a !important; }

.badge-forest   { background-color: #367d1e; color: #fff; }
.badge-brown    { background-color: #8b5a2b; color: #fff; }
.badge-maroon   { background-color: #8e1b3f; color: #fff; }
.badge-sky      { background-color: #4da3ff; color: #1f2d41; }
.badge-olive    { background-color: #7a7400; color: #fff; }
.badge-lavender { background-color: #a77bf0; color: #1f2d41; }
.badge-slate    { background-color: #66788a; color: #fff; }

a.badge-forest:hover, a.badge-brown:hover, a.badge-maroon:hover, a.badge-sky:hover,
a.badge-olive:hover, a.badge-lavender:hover, a.badge-slate:hover {
    filter: brightness(0.9);
    text-decoration: none;
}

/* Light backgrounds need dark text where pages hard-code text-white on the avatar. */
.bg-sky .text-white, .bg-lavender .text-white,
.bg-sky.text-white, .bg-lavender.text-white { color: #1f2d41 !important; }
