wroot/css/mayo-theme.css
/*
 * Mayo Software Custom Color Theme
 * Overrides Silicon template colors to match Mayo Software brand
 * Colors extracted from mayo-software.png logo
 * Enhanced for Light/Dark Mode Support
 */
/* ===== LIGHT MODE (DEFAULT) ===== */
:root,
[data-bs-theme="light"] {
    /* ===== PRIMARY BRAND COLORS ===== */
    /* Primary: Mid-Tone Bright Green */
    --si-primary-rgb: 116, 225, 25 !important;
    --si-primary: #74E119 !important;
    --bs-primary-rgb: 116, 225, 25 !important;
    --bs-primary: #74E119 !important;
    /* Secondary: Keep light gray for contrast */
    --si-secondary-rgb: 239, 242, 252 !important;
    --si-secondary: #eff2fc !important;
    --bs-secondary-rgb: 239, 242, 252 !important;
    --bs-secondary: #eff2fc !important;
    /* Success: Darker Green */
    --si-success-rgb: 74, 211, 26 !important;
    --si-success: #4AD31A !important;
    --bs-success-rgb: 74, 211, 26 !important;
    --bs-success: #4AD31A !important;
    /* ===== ACCENT & UTILITY COLORS ===== */
    /* Info: Lighter/Brighter Green */
    --si-info-rgb: 163, 236, 24 !important;
    --si-info: #A3EC18 !important;
    --bs-info-rgb: 163, 236, 24 !important;
    --bs-info: #A3EC18 !important;
    /* Warning: Complementary orange for contrast */
    --si-warning-rgb: 255, 186, 8 !important;
    --si-warning: #ffba08 !important;
    --bs-warning-rgb: 255, 186, 8 !important;
    --bs-warning: #ffba08 !important;
    /* Danger: Keep red for errors */
    --si-danger-rgb: 239, 68, 68 !important;
    --si-danger: #ef4444 !important;
    --bs-danger-rgb: 239, 68, 68 !important;
    --bs-danger: #ef4444 !important;
    /* ===== GRAYSCALE ===== */
    --si-gray-100: #f3f6ff;
    --si-gray-200: #eff2fc;
    --si-gray-300: #e2e5f1;
    --si-gray-400: #d4d7e5;
    --si-gray-500: #b4b7c9;
    --si-gray-600: #9397ad;
    --si-gray-700: #565973;
    --si-gray-800: #33354d;
    --si-gray-900: #0b0f19;
    /* ===== DERIVED PRIMARY COLORS ===== */
    --si-primary-hover: #5ec514;
    --si-primary-active: #4aad10;
    --si-primary-light: rgba(116, 225, 25, 0.12);
    /* ===== SHADOWS ===== */
    --si-box-shadow-primary: 0 0.5rem 1.125rem -0.5rem rgba(116, 225, 25, 0.9);
    --bs-box-shadow-primary: 0 0.5rem 1.125rem -0.5rem rgba(116, 225, 25, 0.9);
    --si-box-shadow-success: 0 0.5rem 1.125rem -0.5rem rgba(74, 211, 26, 0.9);
    --si-box-shadow-info: 0 0.5rem 1.125rem -0.5rem rgba(163, 236, 24, 0.9);
    /* ===== BORDERS ===== */
    --si-border-primary: rgba(116, 225, 25, 0.35);
    --si-border-success: rgba(74, 211, 26, 0.35);
    --si-border-info: rgba(163, 236, 24, 0.35);
    /* ===== TEXT EMPHASIS ===== */
    --si-primary-text-emphasis: #3d9511;
    --bs-primary-text-emphasis: #3d9511;
    --si-success-text-emphasis: #2e8812;
    --si-info-text-emphasis: #83c213;
    /* ===== BACKGROUND SUBTLE ===== */
    --si-primary-bg-subtle: rgba(116, 225, 25, 0.1);
    --bs-primary-bg-subtle: rgba(116, 225, 25, 0.1);
    --si-success-bg-subtle: rgba(74, 211, 26, 0.1);
    --si-info-bg-subtle: rgba(163, 236, 24, 0.1);
    /* ===== BORDER SUBTLE ===== */
    --si-primary-border-subtle: rgba(116, 225, 25, 0.25);
    --bs-primary-border-subtle: rgba(116, 225, 25, 0.25);
    --si-success-border-subtle: rgba(74, 211, 26, 0.25);
    --si-info-border-subtle: rgba(163, 236, 24, 0.25);
    /* ===== LINK COLORS ===== */
    --bs-link-color: #74E119;
    --bs-link-color-rgb: 116, 225, 25;
    --bs-link-hover-color: #5ec514;
    --bs-link-hover-color-rgb: 94, 197, 20;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-bs-theme="dark"] {
    /* Adjust primary for better contrast in dark mode */
    --si-primary: #85ea2a !important;
    --si-primary-rgb: 133, 234, 42 !important;
    --bs-primary: #85ea2a !important;
    --bs-primary-rgb: 133, 234, 42 !important;
    /* Adjust success for dark mode */
    --si-success: #5cd82f !important;
    --si-success-rgb: 92, 216, 47 !important;
    --bs-success: #5cd82f !important;
    --bs-success-rgb: 92, 216, 47 !important;
    /* Adjust info for dark mode */
    --si-info: #b0f02f !important;
    --si-info-rgb: 176, 240, 47 !important;
    --bs-info: #b0f02f !important;
    --bs-info-rgb: 176, 240, 47 !important;
    /* Adjust shadows for dark mode */
    --si-box-shadow-primary: 0 0.5rem 1.125rem -0.5rem rgba(133, 234, 42, 0.7);
    --bs-box-shadow-primary: 0 0.5rem 1.125rem -0.5rem rgba(133, 234, 42, 0.7);
    --si-box-shadow-success: 0 0.5rem 1.125rem -0.5rem rgba(92, 216, 47, 0.7);
    --si-box-shadow-info: 0 0.5rem 1.125rem -0.5rem rgba(176, 240, 47, 0.7);
    /* Dark mode specific adjustments */
    --si-primary-hover: #70d625;
    --si-primary-active: #5ec514;
    --si-primary-light: rgba(133, 234, 42, 0.15);
    /* Text emphasis for dark mode */
    --si-primary-text-emphasis: #a3f254;
    --bs-primary-text-emphasis: #a3f254;
    --si-success-text-emphasis: #7ee34d;
    --si-info-text-emphasis: #c5f557;
    /* Background subtle for dark mode */
    --si-primary-bg-subtle: rgba(133, 234, 42, 0.15);
    --bs-primary-bg-subtle: rgba(133, 234, 42, 0.15);
    --si-success-bg-subtle: rgba(92, 216, 47, 0.15);
    --si-info-bg-subtle: rgba(176, 240, 47, 0.15);
    /* Border subtle for dark mode */
    --si-primary-border-subtle: rgba(133, 234, 42, 0.3);
    --bs-primary-border-subtle: rgba(133, 234, 42, 0.3);
    --si-success-border-subtle: rgba(92, 216, 47, 0.3);
    --si-info-border-subtle: rgba(176, 240, 47, 0.3);
    /* Link colors for dark mode */
    --bs-link-color: #85ea2a;
    --bs-link-color-rgb: 133, 234, 42;
    --bs-link-hover-color: #a3f254;
    --bs-link-hover-color-rgb: 163, 242, 84;
}

/* ===== BOOTSTRAP/SILICON COMPONENT OVERRIDES ===== */

/* Primary Buttons - Light Mode */
html[data-bs-theme="light"] .btn-primary,
:root .btn-primary {
    background-color: #74E119 !important;
    border-color: #74E119 !important;
    color: #fff !important;
}

    html[data-bs-theme="light"] .btn-primary:hover,
    html[data-bs-theme="light"] .btn-primary:focus,
    :root .btn-primary:hover,
    :root .btn-primary:focus {
        background-color: #5ec514 !important;
        border-color: #5ec514 !important;
        color: #fff !important;
    }

    html[data-bs-theme="light"] .btn-primary:active,
    html[data-bs-theme="light"] .btn-primary.active,
    :root .btn-primary:active,
    :root .btn-primary.active {
        background-color: #4aad10 !important;
        border-color: #4aad10 !important;
    }

/* Primary Buttons - Dark Mode */
html[data-bs-theme="dark"] .btn-primary {
    background-color: #85ea2a !important;
    border-color: #85ea2a !important;
    color: #0b0f19 !important;
}

    html[data-bs-theme="dark"] .btn-primary:hover,
    html[data-bs-theme="dark"] .btn-primary:focus {
        background-color: #70d625 !important;
        border-color: #70d625 !important;
        color: #0b0f19 !important;
    }

    html[data-bs-theme="dark"] .btn-primary:active,
    html[data-bs-theme="dark"] .btn-primary.active {
        background-color: #5ec514 !important;
        border-color: #5ec514 !important;
    }

/* Outline Primary Buttons - Light Mode */
html[data-bs-theme="light"] .btn-outline-primary,
:root .btn-outline-primary {
    color: #74E119 !important;
    border-color: #74E119 !important;
}

    html[data-bs-theme="light"] .btn-outline-primary:hover,
    html[data-bs-theme="light"] .btn-outline-primary:focus,
    :root .btn-outline-primary:hover,
    :root .btn-outline-primary:focus {
        background-color: #74E119 !important;
        border-color: #74E119 !important;
        color: #fff !important;
    }

/* Outline Primary Buttons - Dark Mode */
html[data-bs-theme="dark"] .btn-outline-primary {
    color: #85ea2a !important;
    border-color: #85ea2a !important;
}

    html[data-bs-theme="dark"] .btn-outline-primary:hover,
    html[data-bs-theme="dark"] .btn-outline-primary:focus {
        background-color: #85ea2a !important;
        border-color: #85ea2a !important;
        color: #0b0f19 !important;
    }

/* Primary Links - Light Mode */
html[data-bs-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item),
:root a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #74E119;
}

    html[data-bs-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
    html[data-bs-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item):focus,
    :root a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
    :root a:not(.btn):not(.nav-link):not(.dropdown-item):focus {
        color: #5ec514;
    }

/* Primary Links - Dark Mode */
html[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #85ea2a;
}

    html[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
    html[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):focus {
        color: #a3f254;
    }

/* Primary Badges */
.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

html[data-bs-theme="dark"] .badge.bg-primary {
    color: #0b0f19 !important;
}

/* Primary Alerts */
.alert-primary {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
    color: var(--bs-primary-text-emphasis);
}

/* Primary Text Color */
.text-primary {
    color: var(--bs-primary) !important;
}

/* Primary Background */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

html[data-bs-theme="dark"] .bg-primary {
    color: #0b0f19 !important;
}

/* Primary Border */
.border-primary {
    border-color: var(--si-border-primary) !important;
}

/* Form Controls Focus State */
.form-control:focus,
.form-select:focus {
    border-color: var(--si-border-primary);
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(var(--si-primary-rgb), 0.2);
}

/* Checkbox & Radio Checked State */
.form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* ===== FORM SWITCHES (GENERAL) ===== */

/* Form Switch - General Checkboxes */
.form-switch .form-check-input:checked {
    background-color: var(--bs-primary) !important;
    box-shadow: var(--bs-box-shadow-primary);
}

/* ===== MODE SWITCH (LIGHT/DARK TOGGLE) - SPECIFIC ===== */

/* Target ONLY the mode-switch component */
.mode-switch.form-switch {
    display: flex;
    align-items: center;
}

    /* Mode Switch Input - Base Styles */
    .mode-switch.form-switch .form-check-input {
        width: 2.875em;
        height: 1.5rem;
        margin-left: 0;
        border: none !important;
        transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
    }

/* Mode Switch Input - Unchecked (Light Mode Active) */
html[data-bs-theme="light"] .mode-switch.form-switch .form-check-input:not(:checked) {
    background-color: #74E119 !important;
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(116, 225, 25, 0.9);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 26'%3e%3cpath d='M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 19.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3e%3c/svg%3e") !important;
    background-position: left 0.25rem center !important;
    background-size: 1rem !important;
    background-repeat: no-repeat !important;
}

/* Mode Switch Input - Checked (Dark Mode Active) */
html[data-bs-theme="dark"] .mode-switch.form-switch .form-check-input:checked {
    background-color: #85ea2a !important;
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(133, 234, 42, 0.7);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 26'%3e%3cpath d='M4 22.1679C7.5318 20.6248 9.99998 17.1006 9.99998 13C9.99998 8.89937 7.5318 5.37521 4 3.8321C5.22493 3.2969 6.5778 3 8.00002 3C13.5229 3 18 7.47715 18 13C18 18.5228 13.5229 23 8.00002 23C6.5778 23 5.22493 22.7031 4 22.1679Z' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: right 0.25rem center !important;
    background-size: 1rem !important;
    background-repeat: no-repeat !important;
}

/* Fallback for unchecked dark mode state */
html[data-bs-theme="dark"] .mode-switch.form-switch .form-check-input:not(:checked) {
    background-color: #85ea2a !important;
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(133, 234, 42, 0.7);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 26'%3e%3cpath d='M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 19.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3e%3c/svg%3e") !important;
    background-position: left 0.25rem center !important;
}

/* Fallback for checked light mode state */
html[data-bs-theme="light"] .mode-switch.form-switch .form-check-input:checked {
    background-color: #74E119 !important;
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(116, 225, 25, 0.9);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 26'%3e%3cpath d='M4 22.1679C7.5318 20.6248 9.99998 17.1006 9.99998 13C9.99998 8.89937 7.5318 5.37521 4 3.8321C5.22493 3.2969 6.5778 3 8.00002 3C13.5229 3 18 7.47715 18 13C18 18.5228 13.5229 23 8.00002 23C6.5778 23 5.22493 22.7031 4 22.1679Z' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: right 0.25rem center !important;
}

/* Mode Switch Input - Focus State */
.mode-switch.form-switch .form-check-input:focus {
    border: none !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--si-primary-rgb), 0.25), var(--bs-box-shadow-primary) !important;
}

/* Mode Switch Input - Hover State */
.mode-switch.form-switch .form-check-input:hover {
    cursor: pointer;
    opacity: 0.9;
}

/* Mode Switch Labels - Only for mode-switch */
.mode-switch.form-switch .form-check-label {
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
    margin: 0 0.75rem;
}

/* Light Mode Label States */
html[data-bs-theme="light"] .mode-switch.form-switch .form-check-label:first-of-type {
    color: var(--si-gray-900);
}

html[data-bs-theme="light"] .mode-switch.form-switch .form-check-label:last-of-type {
    color: var(--si-gray-600);
}

/* Dark Mode Label States */
html[data-bs-theme="dark"] .mode-switch.form-switch .form-check-label:first-of-type {
    color: rgba(255, 255, 255, 0.6);
}

html[data-bs-theme="dark"] .mode-switch.form-switch .form-check-label:last-of-type {
    color: rgba(255, 255, 255, 1);
}

/* Navigation Active State */
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Pagination Active */
.pagination .page-link.active,
.pagination .page-item.active .page-link {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

html[data-bs-theme="dark"] .pagination .page-link.active,
html[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    color: #0b0f19 !important;
}

/* Progress Bar */
.progress-bar {
    background-color: var(--bs-primary) !important;
}

/* Spinner */
.spinner-border-primary {
    border-color: var(--bs-primary);
    border-right-color: transparent;
}

/* List Group Active Item */
.list-group-item.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

html[data-bs-theme="dark"] .list-group-item.active {
    color: #0b0f19 !important;
}

/* Card Hover Effect */
.card-hover-primary:hover {
    border-color: var(--bs-primary);
}

/* Shadow Primary */
.shadow-primary {
    box-shadow: var(--bs-box-shadow-primary) !important;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ===== HOME PAGE SPECIFIC OVERRIDES ===== */

/* Hero Section Text Primary */
.text-primary {
    color: var(--bs-primary) !important;
}

/* Service Cards Check Icons */
.bx-check.text-primary {
    color: var(--bs-primary) !important;
}

/* Feature Card Icons */
.card-icon[style*="color"] {
    color: var(--bs-primary) !important;
}

/* ===== UTILITIES ===== */

/* Mayo Software Branded Button Class */
.btn-mayo {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

html[data-bs-theme="dark"] .btn-mayo {
    color: #0b0f19;
}

.btn-mayo:hover,
.btn-mayo:focus {
    background-color: var(--si-primary-hover);
    border-color: var(--si-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow-primary);
}

html[data-bs-theme="dark"] .btn-mayo:hover,
html[data-bs-theme="dark"] .btn-mayo:focus {
    color: #0b0f19;
}

/* Mayo Software Accent Class */
.mayo-accent {
    color: var(--bs-info);
}

/* Mayo Software Gradient Background */
.bg-mayo-gradient {
    background: linear-gradient(135deg, #4AD31A 0%, #74E119 50%, #A3EC18 100%);
}

html[data-bs-theme="dark"] .bg-mayo-gradient {
    background: linear-gradient(135deg, #5cd82f 0%, #85ea2a 50%, #b0f02f 100%);
}

/* Mayo Software Text Gradient */
.text-mayo-gradient {
    background: linear-gradient(135deg, #4AD31A 0%, #74E119 50%, #A3EC18 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-bs-theme="dark"] .text-mayo-gradient {
    background: linear-gradient(135deg, #5cd82f 0%, #85ea2a 50%, #b0f02f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video Play Button */
.btn-video:hover {
    background-color: var(--bs-primary);
    box-shadow: var(--bs-box-shadow-primary);
}

/* Scroll to Top Button */
.btn-scroll-top {
    background-color: rgba(var(--si-primary-rgb), 0.2);
}

    .btn-scroll-top:hover {
        background-color: var(--bs-primary);
    }

/* Blog/Portfolio Category Badges */
.badge.bg-faded-primary {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 991.98px) {
    .btn-primary,
    .btn-outline-primary {
        padding: 0.625rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-mayo:hover {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .text-primary,
    .btn-primary {
        color: #4AD31A !important;
        border-color: #4AD31A !important;
    }
}
