/**
 * KURYEEN Brand Colors Override
 * Corporate red and white color scheme
 */

/* Override Bootstrap primary colors with KURYEEN brand */
.btn-primary {
    background: #C93333 !important;
    border-color: #C93333 !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #A82828 !important;
    border-color: #A82828 !important;
    box-shadow: 0 8px 20px rgba(201, 51, 51, 0.3) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #C93333 !important;
    border-color: #C93333 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #C93333 !important;
    border-color: #C93333 !important;
    color: white !important;
}

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

.text-secondary {
    color: #A82828 !important;
}

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

.bg-secondary {
    background-color: #E05555 !important;
    color: white !important;
}

.bg-success {
    background-color: #C93333 !important;
    color: white !important;
}

.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: white !important;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.bg-dark {
    background-color: #343a40 !important;
    color: white !important;
}

.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Badge colors */
.badge {
    color: white !important;
}

.badge-primary {
    background-color: #C93333 !important;
    color: white !important;
}

.badge-secondary {
    background-color: #E05555 !important;
    color: white !important;
}

.badge-success {
    background-color: #C93333 !important;
    color: white !important;
}

.badge-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: white !important;
}

.badge-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.badge-dark {
    background-color: #343a40 !important;
    color: white !important;
}

.badge-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Alert colors */
.alert-primary {
    background-color: rgba(201, 51, 51, 0.1) !important;
    border-color: #C93333 !important;
    color: #A82828 !important;
}

.alert-secondary {
    background-color: rgba(224, 85, 85, 0.1) !important;
    border-color: #E05555 !important;
    color: #C93333 !important;
}

/* Form controls */
.form-control:focus {
    border-color: #C93333 !important;
    box-shadow: 0 0 0 0.2rem rgba(201, 51, 51, 0.25) !important;
}

.form-select:focus {
    border-color: #C93333 !important;
    box-shadow: 0 0 0 0.2rem rgba(201, 51, 51, 0.25) !important;
}

/* Progress bars */
.progress-bar {
    background: #C93333 !important;
}

/* Links */
a {
    color: #C93333 !important;
}

a:hover {
    color: #A82828 !important;
}

/* Cards and panels */
.card-header-primary {
    background: #C93333 !important;
    color: white !important;
}

/* Navigation */
.navbar-brand {
    color: #C93333 !important;
}

.nav-link.active,
.nav-link:hover {
    color: #C93333 !important;
}

/* Pagination */
.page-link {
    color: #C93333 !important;
}

.page-link:hover {
    color: #A82828 !important;
    background-color: rgba(201, 51, 51, 0.1) !important;
    border-color: #C93333 !important;
}

.page-item.active .page-link {
    background-color: #C93333 !important;
    border-color: #C93333 !important;
}

/* Tables */
.table-primary {
    background-color: rgba(201, 51, 51, 0.1) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(201, 51, 51, 0.02) !important;
}

/* Dropdowns */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(201, 51, 51, 0.1) !important;
    color: #C93333 !important;
}

.dropdown-item.active {
    background-color: #C93333 !important;
    color: white !important;
}

/* Modals */
.modal-header {
    border-bottom-color: rgba(201, 51, 51, 0.2) !important;
}

.modal-footer {
    border-top-color: rgba(201, 51, 51, 0.2) !important;
}

/* Toast notifications */
.toast-header {
    background-color: rgba(201, 51, 51, 0.1) !important;
    color: #C93333 !important;
}

/* Spinners */
.spinner-border-primary {
    color: #C93333 !important;
}

.spinner-grow-primary {
    color: #C93333 !important;
}

/* Custom KURYEEN components */
.kuryeen-gradient {
    background: #C93333 !important;
    color: white !important;
}

.kuryeen-gradient-reverse {
    background: #E05555 !important;
    color: white !important;
}

.kuryeen-border {
    border-color: #C93333 !important;
}

.kuryeen-border-secondary {
    border-color: #E05555 !important;
}

.kuryeen-shadow {
    box-shadow: 0 8px 25px rgba(201, 51, 51, 0.15) !important;
}

.kuryeen-shadow-secondary {
    box-shadow: 0 8px 25px rgba(224, 85, 85, 0.15) !important;
}

/* Status indicators with KURYEEN colors */
.status-success,
.status-delivered,
.status-active {
    background-color: rgba(201, 51, 51, 0.1) !important;
    color: #C93333 !important;
    border: 1px solid rgba(201, 51, 51, 0.3) !important;
}

.status-warning,
.status-pending,
.status-processing {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #d4a622 !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

/* Department icons with brand colors */
.department-icon,
.feature-icon {
    background: #C93333 !important;
    color: white !important;
}

/* Interactive elements */
.btn-custom,
.custom-button {
    background: #C93333 !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.btn-custom:hover,
.custom-button:hover {
    background: #A82828 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(201, 51, 51, 0.3) !important;
}

/* Charts and data visualization */
.chart-primary {
    color: #C93333 !important;
}

.chart-secondary {
    color: #E05555 !important;
}

/* Corporate professional styling */
.corporate-header {
    background: #C93333 !important;
    color: white !important;
    padding: 2rem 0 !important;
}

.corporate-section {
    border-left: 4px solid #C93333 !important;
    background: rgba(201, 51, 51, 0.02) !important;
}

.corporate-highlight {
    color: #C93333 !important;
    font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kuryeen-gradient {
        background: #C93333 !important;
    }
    
    .btn-custom,
    .custom-button {
        background: #C93333 !important;
    }
}

/* Animation enhancements */
@keyframes kuryeenPulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 51, 51, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(201, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 51, 51, 0); }
}

.kuryeen-pulse {
    animation: kuryeenPulse 2s infinite !important;
}

/* Button text color fixes */
.btn {
    color: white !important;
}

.btn-success {
    background-color: #C93333 !important;
    border-color: #C93333 !important;
    color: white !important;
}

.btn-info {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: white !important;
}

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

.btn-dark {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: white !important;
}

.btn-light {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Outline button text fixes */
.btn-outline-success {
    color: #C93333 !important;
    border-color: #C93333 !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: #C93333 !important;
    border-color: #C93333 !important;
    color: white !important;
}

.btn-outline-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
}

.btn-outline-warning {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: white !important;
}

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

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-outline-dark {
    color: #343a40 !important;
    border-color: #343a40 !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: white !important;
}

.btn-outline-light {
    color: #6c757d !important;
    border-color: #f8f9fa !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Card header text fixes */
.card-header {
    color: #212529 !important;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-title {
    color: #212529 !important;
    font-weight: 600 !important;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-dark {
    color: white !important;
}

.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary .card-title,
.card-header.bg-success h1,
.card-header.bg-success h2,
.card-header.bg-success h3,
.card-header.bg-success h4,
.card-header.bg-success h5,
.card-header.bg-success h6,
.card-header.bg-success .card-title,
.card-header.bg-info h1,
.card-header.bg-info h2,
.card-header.bg-info h3,
.card-header.bg-info h4,
.card-header.bg-info h5,
.card-header.bg-info h6,
.card-header.bg-info .card-title,
.card-header.bg-warning h1,
.card-header.bg-warning h2,
.card-header.bg-warning h3,
.card-header.bg-warning h4,
.card-header.bg-warning h5,
.card-header.bg-warning h6,
.card-header.bg-warning .card-title,
.card-header.bg-danger h1,
.card-header.bg-danger h2,
.card-header.bg-danger h3,
.card-header.bg-danger h4,
.card-header.bg-danger h5,
.card-header.bg-danger h6,
.card-header.bg-danger .card-title,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.bg-dark .card-title {
    color: white !important;
}

.card-header.bg-light {
    color: #212529 !important;
}

.card-header.bg-light h1,
.card-header.bg-light h2,
.card-header.bg-light h3,
.card-header.bg-light h4,
.card-header.bg-light h5,
.card-header.bg-light h6,
.card-header.bg-light .card-title {
    color: #212529 !important;
}

/* List group items */
.list-group-item.bg-primary,
.list-group-item.bg-success,
.list-group-item.bg-info,
.list-group-item.bg-warning,
.list-group-item.bg-danger,
.list-group-item.bg-dark {
    color: white !important;
}

.list-group-item.bg-light {
    color: #212529 !important;
}

/* Generic text color enforcement for all colored backgrounds */
.bg-primary *,
.bg-success *,
.bg-danger *,
.bg-dark * {
    color: white !important;
}

.bg-light * {
    color: #212529 !important;
}

/* Specific overrides for small elements */
.badge.bg-primary,
.badge.bg-success,
.badge.bg-info,
.badge.bg-warning,
.badge.bg-danger,
.badge.bg-dark,
.badge.bg-secondary {
    color: white !important;
}

.badge.bg-light {
    color: #212529 !important;
}

/* Progress bar text */
.progress-bar {
    color: white !important;
}

/* Navbar and navigation text fixes */
.navbar-nav .nav-link {
    color: inherit !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: white !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #212529 !important;
}

/* Breadcrumb text */
.breadcrumb-item a {
    color: #C93333 !important;
}

.breadcrumb-item.active {
    color: #6c757d !important;
}

/* Tab navigation */
.nav-tabs .nav-link.active {
    color: #C93333 !important;
}

.nav-pills .nav-link.active {
    background-color: #C93333 !important;
    color: white !important;
}

/* Page title and heading text fixes */
.page-title,
.page-header h1,
.page-header h2,
.page-header h3,
.content-area h1,
.content-area h2,
.content-area h3,
.main-content h1,
.main-content h2,
.main-content h3 {
    color: #212529 !important;
    font-weight: 600 !important;
}

/* Section headers and card titles */
h1, h2, h3, h4, h5, h6 {
    color: #212529 !important;
    font-weight: 700 !important;
}

/* All body text and paragraphs */
body, p, span, div, td, th, li {
    color: #212529 !important;
}

/* Link colors */
a {
    color: #C93333 !important;
}

a:hover {
    color: #A82828 !important;
}

/* Table content */
.table, .table td, .table th {
    color: #212529 !important;
}

/* Button text visibility based on background */
.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-dark {
    color: white !important;
}

.btn-light, .btn-outline-primary, .btn-outline-secondary {
    color: #212529 !important;
}

/* Notification badge */
.badge {
    font-weight: 600 !important;
}

/* Icon visibility */
.bi {
    color: inherit !important;
}

/* Input and form element text */
.form-control::placeholder {
    color: #6c757d !important;
}

.form-text {
    color: #6c757d !important;
}
