/* MEDIA PHONE Brand Colors - Override Bootstrap primary color */
/* Main brand color: Deep red to match logo, contrasts with promo badges */

:root {
    /* Override Bootstrap primary color from blue to brand red */
    --blue: #c41e3a;  /* Deep red - MEDIA PHONE brand color */
    --primary: #c41e3a;  /* Brand red - distinct from danger red */
    --danger: #dc3545;  /* Keep promo red as is */
    --dark: #1a1a1a;  /* Darker footer */
}

/* Global primary color overrides */
.bg-primary {
    background-color: #c41e3a !important;
}

/* Top bar styling - semi-transparent black - MUST come after .bg-primary to override */
.top-bar,
.bg-primary.py-2 {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.text-primary {
    color: #c41e3a !important;
}

.border-primary {
    border-color: #c41e3a !important;
}

/* Button primary overrides */
.btn-primary {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.btn-primary:hover {
    background-color: #a01829;
    border-color: #8b1523;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: #a01829;
    border-color: #8b1523;
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: #8b1523;
    border-color: #76121e;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.5);
}

/* Outline primary button */
.btn-outline-primary {
    color: #c41e3a;
    border-color: #c41e3a;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.5);
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: #c41e3a;
    background-color: transparent;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.5);
}

/* Link colors */
a {
    color: #c41e3a;
}

a:hover {
    color: #a01829;
}

/* Badge primary */
.badge-primary {
    background-color: #c41e3a;
}

.badge-primary[href]:hover,
.badge-primary[href]:focus {
    background-color: #a01829;
}

/* Alert primary */
.alert-primary {
    background-color: #f5d5dc;
    border-color: #f1c2cc;
    color: #7e1320;
}

.alert-primary hr {
    border-top-color: #ecaab9;
}

.alert-primary .alert-link {
    color: #5a0d17;
}

/* List group primary */
.list-group-item-primary {
    color: #7e1320;
    background-color: #f1c2cc;
}

.list-group-item-primary.list-group-item-action:hover,
.list-group-item-primary.list-group-item-action:focus {
    color: #7e1320;
    background-color: #ecaab9;
}

.list-group-item-primary.list-group-item-action.active {
    color: #fff;
    background-color: #7e1320;
    border-color: #7e1320;
}

/* Table primary */
.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: #f1c2cc;
}

.table-primary th,
.table-primary td,
.table-primary thead th,
.table-primary tbody + tbody {
    border-color: #e4899f;
}

.table-hover .table-primary:hover {
    background-color: #ecaab9;
}

.table-hover .table-primary:hover > td,
.table-hover .table-primary:hover > th {
    background-color: #ecaab9;
}

/* Progress bar primary */
.progress-bar {
    background-color: #c41e3a;
}

/* Custom form controls */
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: #c41e3a;
    background-color: #c41e3a;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #c41e3a;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #c41e3a;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.custom-range::-webkit-slider-thumb {
    background-color: #c41e3a;
}

.custom-range::-webkit-slider-thumb:active {
    background-color: #f5d5dc;
}

.custom-range::-moz-range-thumb {
    background-color: #c41e3a;
}

.custom-range::-moz-range-thumb:active {
    background-color: #f5d5dc;
}

.custom-range::-ms-thumb {
    background-color: #c41e3a;
}

.custom-range::-ms-thumb:active {
    background-color: #f5d5dc;
}

/* Navigation active states */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #c41e3a;
}

/* Pagination */
.page-link {
    color: #c41e3a;
}

.page-link:hover {
    color: #a01829;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.page-item.active .page-link {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #c41e3a;
}

/* Ensure promo badges stay their original red color */
.badge-danger,
.sale-badge {
    background-color: #dc3545 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}
