/*
 * GST Red Theme Override
 * Replaces Larkon's orange-tinted soft/subtle primary colors with a consistent red theme
 * matching gameservertools.com branding.
 */

:root,
[data-bs-theme="light"] {
    --bs-primary: #DC3545;
    --bs-primary-rgb: 220, 53, 69;
    --bs-primary-bg-subtle: #f8d7da;
    --bs-primary-border-subtle: #f1aeb5;
    --bs-primary-text-emphasis: #8b1a25;
    --bs-link-color: #DC3545;
    --bs-link-hover-color: #b02a37;
    --bs-link-color-rgb: 220, 53, 69;
    --bs-link-hover-color-rgb: 176, 42, 55;
}

[data-bs-theme="dark"] {
    --bs-primary: #DC3545;
    --bs-primary-rgb: 220, 53, 69;
    --bs-primary-bg-subtle: rgba(220, 53, 69, 0.15);
    --bs-primary-border-subtle: rgba(220, 53, 69, 0.35);
    --bs-primary-text-emphasis: #ea868f;
    --bs-link-color: #ea868f;
    --bs-link-hover-color: #f1a8b0;
    --bs-link-color-rgb: 234, 134, 143;
    --bs-link-hover-color-rgb: 241, 168, 176;
}

/* Primary buttons */
.btn-primary {
    --bs-btn-bg: #DC3545;
    --bs-btn-border-color: #DC3545;
    --bs-btn-hover-bg: #b02a37;
    --bs-btn-hover-border-color: #a52834;
    --bs-btn-active-bg: #a52834;
    --bs-btn-active-border-color: #9a2530;
    --bs-btn-disabled-bg: #DC3545;
    --bs-btn-disabled-border-color: #DC3545;
}

/* Soft primary buttons (these were the main orange culprit) */
.btn-soft-primary {
    --bs-btn-color: #DC3545;
    --bs-btn-bg: rgba(220, 53, 69, 0.1);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #DC3545;
    --bs-btn-hover-border-color: #DC3545;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #b02a37;
}

/* Outline primary */
.btn-outline-primary {
    --bs-btn-color: #DC3545;
    --bs-btn-border-color: #DC3545;
    --bs-btn-hover-bg: #DC3545;
    --bs-btn-hover-border-color: #DC3545;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;
}

/* Nav active states */
.nav-link.active,
.nav-pills .nav-link.active {
    --bs-nav-pills-link-active-bg: #DC3545;
}

/* Nav tabs active border */
.nav-tabs .nav-link.active {
    border-bottom-color: #DC3545 !important;
    color: #DC3545 !important;
}

/* Text primary */
.text-primary {
    color: #DC3545 !important;
}

/* Background primary */
.bg-primary {
    background-color: #DC3545 !important;
}

/* Sidebar active nav item */
.main-nav .navbar-nav .nav-link.active {
    color: #DC3545 !important;
}

.main-nav .navbar-nav .nav-link.active .nav-icon {
    color: #DC3545 !important;
}

/* Form controls focus ring */
.form-control:focus,
.form-select:focus {
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

/* Form switch checked */
.form-check-input:checked {
    background-color: #DC3545;
    border-color: #DC3545;
}

/* Progress bars */
.progress-bar {
    background-color: #DC3545;
}

/* Badge primary */
.badge.bg-primary {
    background-color: #DC3545 !important;
}

/* Spinner */
.spinner-border.text-primary {
    color: #DC3545 !important;
}
