/* Custom styles for proam.ai */

/* Theme specific styles */
/* Dark Theme (Default) */
:root,
[data-bs-theme="dark"] {
    --text-color: #f8f9fa;
    --background-color: #343a40;
    --card-bg: #212529;
    --card-bg-secondary: #272c31;
    --card-header-bg: #1e2125;
    --border-color: #495057;
    --highlight-color: #6c63ff; /* Purple theme */
    --secondary-bg: #2b3035;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #6c63ff; /* Changed to match purple theme */
}

/* Light Theme */
[data-bs-theme="light"],
html.theme-light {
    --text-color: #212529 !important;
    --background-color: #f8f9fa !important;
    --card-bg: #ffffff !important;
    --card-bg-secondary: #f8f9fa !important;
    --card-header-bg: #f0f0f0 !important;
    --border-color: #dee2e6 !important;
    --highlight-color: #6c63ff !important; /* Purple theme */
    --secondary-bg: #e9ecef !important;
    --success-color: #28a745 !important;
    --danger-color: #dc3545 !important;
    --warning-color: #ffc107 !important;
    --info-color: #6c63ff !important; /* Changed to match purple theme */
}

/* Resource Card Styles - Modern Design */
.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight-color), #8b7fff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
    border-color: var(--highlight-color);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card .btn {
    margin-top: auto;
    border-radius: 8px;
    font-weight: 500;
    padding: 6px 16px;
    transition: all 0.2s ease;
}

.resource-card .btn-primary {
    background: linear-gradient(135deg, var(--highlight-color), #8b7fff);
    border: none;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.resource-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.resource-card .btn-outline-primary {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

.resource-card .btn-outline-primary:hover {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    transform: translateY(-1px);
}

/* Resource card icon styling */
.resource-card .rounded-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-card .bi {
    font-size: 1.2rem;
    color: var(--highlight-color);
}

/* Resource card text styling */
.resource-card .fw-medium {
    color: var(--text-color);
    font-weight: 600;
}

.resource-card .text-muted {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Todo List Styles */
.todo-list {
    margin: 0;
    padding: 0;
}

.todo-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.todo-item:last-child {
    border-bottom: none;
}

/* Static todo completion styles */
.todo-item.static-todo {
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-item.static-todo:hover {
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 4px;
}

.todo-item.static-todo.completed {
    opacity: 0.7;
    text-decoration: line-through;
    background-color: rgba(40, 167, 69, 0.1);
}

.todo-item.static-todo.completed .todo-text {
    color: #6c757d;
}

.static-complete-btn {
    transition: all 0.3s ease;
}

.static-complete-btn:hover {
    transform: scale(1.05);
}

.todo-item .bi-circle {
    font-size: 0.8rem;
    color: #6c757d;
}

.todo-item strong {
    color: #495057;
    font-weight: 600;
}

.todo-item .text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
    line-height: 1.3;
}

.todo-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0 -8px;
    padding: 8px 8px;
}

/* Apply theme variables */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Enhanced icon visibility */
.expert-section .bi {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.6);
    font-weight: bold;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}

.expert-section .rounded-circle {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Card styling */
.card {
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.card-header {
    background-color: var(--card-header-bg);
    color: var(--text-color);
}

/* Card title and text proper coloring */
.card-title {
    color: var(--text-color);
}

.card-text {
    color: var(--text-color);
}

/* Bootstrap text classes in different theme modes */
[data-bs-theme="light"] .text-dark, 
html.theme-light .text-dark {
    color: var(--text-color) !important;
}

/* Form control styling */
.form-control, .form-select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Footer styling */
.footer {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-top: 1px solid var(--border-color);
}

.footer h5 {
    color: var(--highlight-color) !important;
    font-weight: 600;
}

.footer-text {
    color: var(--text-color) !important;
    opacity: 0.8;
}

/* Modern User Dropdown Menu */
.modern-user-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 8px 20px;
    color: white !important;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-user-toggle:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white !important;
}

.user-avatar {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 8px;
    vertical-align: middle;
}

.modern-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 10px;
    min-width: 280px;
    overflow: hidden;
}

.modern-dropdown .dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-bottom: none;
    font-size: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-large {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.user-details {
    flex: 1;
}

.user-details strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.user-details small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.modern-item {
    padding: 15px 25px;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.modern-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
}

.modern-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #667eea;
}

.admin-item:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #e74c3c;
}

.admin-item:hover i {
    color: #e74c3c;
}

.logout-item:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    color: #ff9800;
}

.logout-item:hover i {
    color: #ff9800;
}

.theme-section {
    padding: 20px 25px;
}

.theme-section .dropdown-item-text {
    padding: 0;
    color: #2c3e50;
}

.theme-selector {
    margin-top: 10px;
}

.theme-options {
    display: flex;
    gap: 8px;
}

.theme-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.btn-check:checked + .theme-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dark-theme i {
    color: #4a5568;
}

.light-theme i {
    color: #ffd700;
}

.btn-check:checked + .dark-theme i,
.btn-check:checked + .light-theme i {
    color: white;
}

.modern-dropdown .dropdown-divider {
    margin: 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    opacity: 1;
}

/* Dark theme adjustments for dropdown */
[data-bs-theme="dark"] .modern-dropdown {
    background: rgba(33, 37, 41, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .modern-item {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .theme-section .dropdown-item-text {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .theme-btn {
    background: rgba(33, 37, 41, 0.8);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .theme-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #667eea;
}

[data-bs-theme="dark"] .modern-dropdown .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: var(--text-color) !important;
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--highlight-color) !important;
    opacity: 1;
}

.footer-divider {
    border-color: var(--border-color);
    opacity: 0.2;
}

/* Button effects for theme toggle */
.btn-check:active+.btn-outline-secondary, 
.btn-check:checked+.btn-outline-secondary {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: white;
}

/* Modal styling */
.modal-content {
    transition: background-color 0.3s ease;
}

/* Text contrast overrides */
html.theme-light .text-white.bg-dark {
    color: var(--text-color) !important;
}

/* Specific component overrides for light theme */
[data-bs-theme="light"] .bg-dark,
html.theme-light .bg-dark {
    background-color: var(--card-bg) !important;
}

[data-bs-theme="light"] .bg-secondary,
html.theme-light .bg-secondary {
    background-color: var(--secondary-bg) !important;
}

/* Fix text colors in light theme */
[data-bs-theme="light"] .text-white,
html.theme-light .text-white {
    color: var(--text-color) !important;
}

[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link,
html.theme-light .navbar-dark .navbar-nav .nav-link {
    color: white !important;
}

/* Chart colors for light theme */
[data-bs-theme="light"] .chart-container canvas,
html.theme-light .chart-container canvas {
    filter: invert(0.9) hue-rotate(180deg);
}

/* Form focus states */
[data-bs-theme="light"] .form-control:focus,
html.theme-light .form-control:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Theme toggle button styles */
.theme-toggle-container .btn-check:checked + .btn-outline-secondary {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
}

/* Navigation adjustments for themes */
[data-bs-theme="light"] .navbar-dark,
html.theme-light .navbar-dark {
    background-color: var(--highlight-color) !important;
}

/* Override Bootstrap primary colors with purple theme */
.bg-primary, 
.btn-primary,
.navbar-dark.bg-primary {
    background-color: #6c63ff !important;
    border-color: #6c63ff !important;
}

/* Override text-primary color */
.text-primary {
    color: #6c63ff !important;
}

/* Modal content in light theme */
[data-bs-theme="light"] .modal-content,
html.theme-light .modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Home page sections with theme support */
.hero-section {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.secondary-button {
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

.secondary-button:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.quick-question-section {
    background: linear-gradient(to right, rgba(93, 63, 211, 0.1), rgba(93, 63, 211, 0.2));
}

[data-bs-theme="light"] .quick-question-section,
html.theme-light .quick-question-section {
    background: linear-gradient(to right, rgba(93, 63, 211, 0.05), rgba(93, 63, 211, 0.15));
}

.expert-section {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-bs-theme="dark"] .expert-section, 
html.theme-dark .expert-section {
    background: linear-gradient(to bottom, #212529, #343a40);
}

.expert-text {
    color: var(--text-color);
}

/* Meeting Recorder Theme Support */
.transcript-card {
    border: none;
    border-radius: 10px;
}

[data-bs-theme="dark"] .transcript-card,
html.theme-dark .transcript-card {
    background-color: #2a3043;
}

[data-bs-theme="light"] .transcript-card,
html.theme-light .transcript-card {
    background-color: #f8f9fa;
}

.transcript-text {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    color: var(--text-color);
}

[data-bs-theme="dark"] .transcript-text,
html.theme-dark .transcript-text {
    background-color: #212529;
}

[data-bs-theme="light"] .transcript-text,
html.theme-light .transcript-text {
    background-color: #e9ecef;
}

.recordings-table {
    color: var(--text-color);
}

[data-bs-theme="dark"] .recordings-table,
html.theme-dark .recordings-table {
    --bs-table-color: var(--text-color);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
}

[data-bs-theme="light"] .recordings-table,
html.theme-light .recordings-table {
    --bs-table-color: var(--text-color);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.05);
}

/* Ensure answer content always has black text color */
.answer-content {
    color: #000 !important;
}

/* Xero Financial Assessment Page Styles */
.bg-primary-gradient {
    background: linear-gradient(135deg, #13b5ea 0%, #0078c1 100%);
    color: white;
}

.bg-secondary-gradient {
    background: linear-gradient(135deg, #343a40 0%, #555c66 100%);
    color: white;
}

.xero-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.xero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.xero-card-body {
    padding: 2rem;
}

.xero-welcome-box {
    background-color: rgba(19, 181, 234, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #13b5ea;
}

.xero-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.xero-feature-item:hover {
    background-color: rgba(93, 63, 211, 0.1);
}

.xero-info-box {
    border-radius: 10px;
    border: none;
    background-color: rgba(13, 202, 240, 0.1);
}

.xero-info-list li {
    margin-bottom: 0.75rem;
}

.xero-logo {
    max-height: 80px;
    margin-bottom: 1rem;
}

.xero-trust-badge {
    background-color: rgba(19, 181, 234, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    border-left: 4px solid #13b5ea;
}

.xero-integration-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.xero-integration-body {
    padding: 2rem;
}

/* Mobile Icon Fixes - Prevent Stretched Icons */
@media (max-width: 768px) {
    .step-number {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
        margin-right: 1rem;
        font-size: 1.1rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px;
        min-height: 50px;
        flex-shrink: 0;
        font-size: 1.2rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    
    /* Onboarding step icons */
    .step-icon {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px;
        min-height: 60px;
        flex-shrink: 0;
        font-size: 1.5rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    
    /* Option card icons */
    .option-card .icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px;
        min-height: 50px;
        flex-shrink: 0;
        font-size: 1.8rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        margin: 0 auto 1rem auto;
    }
    
    /* Prevent text stretching in flex containers */
    .d-flex.align-items-center {
        align-items: flex-start !important;
    }
    
    .d-flex.align-items-center .step-number,
    .d-flex.align-items-center .feature-icon {
        align-self: flex-start !important;
        margin-top: 0.25rem;
    }
    
    /* Assessment flow padding */
    .assessment-flow {
        padding: 2rem 1rem;
    }
    
    /* Feature cards mobile spacing */
    .feature-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

.xero-connected-status {
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid #198754;
}

.xero-status-icon {
    width: 40px;
    height: 40px;
    background-color: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.xero-period-selection {
    background-color: rgba(93, 63, 211, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.xero-connect-box {
    background-color: rgba(93, 63, 211, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.xero-benefits-box {
    background-color: rgba(93, 63, 211, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    height: calc(100% - 1.5rem);
}

.xero-benefits-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.xero-benefits-list li {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.xero-benefits-list li:hover {
    background-color: rgba(93, 63, 211, 0.1);
}

.xero-tip-box {
    background-color: rgba(13, 202, 240, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.xero-warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.xero-btn-back {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.xero-btn-submit {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #13b5ea 0%, #0078c1 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.xero-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0ca2d5 0%, #006aac 100%);
}

.xero-view-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.xero-connect-primary-btn {
    background: linear-gradient(135deg, #13b5ea 0%, #0078c1 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.xero-connect-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0ca2d5 0%, #006aac 100%);
}

.xero-dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem;
}

.xero-dropdown-menu .dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.financial-info-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.financial-info-body {
    padding: 2rem;
}

.finance-info-box {
    display: flex;
    margin-bottom: 2rem;
}

.finance-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(93, 63, 211, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.finance-info-content {
    flex-grow: 1;
}

.finance-info-content h4 {
    margin-bottom: 0.75rem;
    color: var(--bs-primary);
}

.supported-docs-list {
    list-style: none;
    padding-left: 0;
}

.supported-docs-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.supported-docs-list li:hover {
    background-color: rgba(93, 63, 211, 0.05);
}

/* Chartered Accountant Report styling */
.chartered-accountant-report {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #198754;
}

.chartered-accountant-report h1,
.chartered-accountant-report h2,
.chartered-accountant-report h3,
.chartered-accountant-report h4,
.chartered-accountant-report h5 {
    color: #0d6efd;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.chartered-accountant-report strong {
    color: #198754;
}

/* Financial Analysis Section styling */
.financial-analysis-section {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #0d6efd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.financial-analysis-section p {
    margin-bottom: 1rem;
}

/* Highlight financial figures with currency symbols */
.financial-analysis-section span.currency,
.financial-analysis-section strong {
    color: #212529;
    font-weight: 600;
}

/* Make financial numbers stand out */
.financial-analysis-section {
    --metric-color: #0d6efd;
}

.financial-analysis-section strong {
    color: var(--metric-color);
    font-weight: 600;
}

/* Format dollar amounts consistently */
.financial-analysis-section .dollar-amount {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Style percentages differently than dollar amounts */
.financial-analysis-section .percentage {
    color: #198754;
    font-weight: bold;
}

/* Ensure any numbers within the analysis are readable */
.financial-analysis-section .metric-value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Custom color backgrounds and text colors for medium priority/pending status and danger alerts */
.bg-orange {
    background-color: #FFA500 !important;
}

.bg-red {
    background-color: #FF0000 !important;
}

.text-orange {
    color: #FFA500 !important;
}

.text-red {
    color: #FF0000 !important;
}

.border-orange {
    border-color: #FFA500 !important;
}

.border-red {
    border-color: #FF0000 !important;
}

/* Custom button styles */
.btn-orange {
    background-color: #FFA500 !important;
    border-color: #FFA500 !important;
    color: white !important;
}

.btn-orange:hover, .btn-orange:focus, .btn-orange:active {
    background-color: #FF8C00 !important; /* Darker orange for hover */
    border-color: #FF8C00 !important;
}

.btn-outline-orange {
    background-color: transparent !important;
    border-color: #FFA500 !important;
    color: #FFA500 !important;
}

.btn-outline-orange:hover, .btn-outline-orange:focus, .btn-outline-orange:active {
    background-color: rgba(255, 165, 0, 0.1) !important;
    border-color: #FF8C00 !important;
    color: #FF8C00 !important;
}

.btn-red {
    background-color: #FF0000 !important;
    border-color: #FF0000 !important;
    color: white !important;
}

.btn-red:hover, .btn-red:focus, .btn-red:active {
    background-color: #CC0000 !important; /* Darker red for hover */
    border-color: #CC0000 !important;
}

.btn-outline-red {
    background-color: transparent !important;
    border-color: #FF0000 !important;
    color: #FF0000 !important;
}

.btn-outline-red:hover, .btn-outline-red:focus, .btn-outline-red:active {
    background-color: rgba(255, 0, 0, 0.1) !important;
    border-color: #CC0000 !important;
    color: #CC0000 !important;
}

/* Form text enhancements for better visibility */
.form-text {
    color: var(--bs-info) !important;
    font-weight: 500;
}

.text-muted {
    color: #a0aec0 !important;
}

/* Ask Question Page Styles */
.question-card {
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg-secondary));
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.15);
}

.question-card .card-header {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.2), rgba(108, 99, 255, 0.05));
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

[data-bs-theme="dark"] .question-card .card-header,
html.theme-dark .question-card .card-header {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.3), rgba(108, 99, 255, 0.1));
}

.example-btn {
    background-color: transparent;
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--text-color);
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.example-btn:hover {
    background-color: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(90deg, #6c63ff, #5a52cc);
    color: white;
    border-radius: 10px;
    padding: 10px 24px;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    z-index: -1;
    transition: all 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.chat-history-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg-secondary));
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.chat-history-card .card-header {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.2), rgba(108, 99, 255, 0.05));
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

[data-bs-theme="dark"] .chat-history-card .card-header,
html.theme-dark .chat-history-card .card-header {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.3), rgba(108, 99, 255, 0.1));
}

.chat-message {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.chat-message:hover {
    transform: translateY(-3px);
}

.chat-message-user {
    background-color: rgba(108, 99, 255, 0.1);
    margin-right: 15%;
    border-top-left-radius: 0;
}

.chat-message-assistant {
    background-color: rgba(108, 99, 255, 0.2);
    margin-left: 15%;
    border-top-right-radius: 0;
}

/* Business Hub Styles */
.card-bg-secondary {
    background-color: rgba(108, 99, 255, 0.05);
}

/* Business Resource Tabs Styling */
.hub-nav-link {
    border: none;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 16px;
    margin-right: 5px;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.95rem;
}

.hub-nav-link i {
    margin-right: 6px;
    font-size: 0.9em;
}

.hub-nav-link.active {
    background: #6c63ff;
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

.hub-nav-link:not(.active) {
    background-color: rgba(108, 99, 255, 0.08);
}

.hub-nav-link:hover:not(.active) {
    background-color: rgba(108, 99, 255, 0.15);
    transform: translateY(-3px);
}

/* Resource tab styling for data cards */
.resource-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border: 1px solid rgba(108, 99, 255, 0.1);
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg-secondary));
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(108, 99, 255, 0.1);
}

.resource-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.08), rgba(108, 99, 255, 0.02));
}

.resource-date {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #6c63ff;
    color: white;
    font-weight: 500;
}

/* Update view/delete buttons */
.view-btn, .delete-btn {
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.view-btn {
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.view-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    transform: translateY(-2px);
}

.delete-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.share-btn {
    background: rgba(32, 201, 151, 0.1);
    color: #20c997;
    border: 1px solid rgba(32, 201, 151, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(32, 201, 151, 0.2);
    transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 576px) {
    /* Business Hub improvements for small screens */
    .business-greeting {
        font-size: 1.4rem !important;
    }
    
    .business-welcome-text {
        font-size: 1rem !important;
    }
    
    /* Benchmarking metrics responsive sizing */
    .responsive-display {
        font-size: 1.8rem !important;
    }
    
    .card-metric {
        margin-bottom: 15px;
    }
    
    .card-metric .card-title {
        font-size: 1rem !important;
    }
    
    /* Larger record button for easier tapping */
    #recordButton {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    /* Improve quick action buttons on mobile */
    .col-md-4.col-lg-2.mb-3 .btn {
        font-size: 0.9rem;
        padding: 15px 10px;
        height: auto !important;
    }
    
    /* Adjust font sizes for better readability */
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    /* Fixed control buttons in transcript footer */
    #recording-controls-fixed .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Make timer more visible */
    .timer-display {
        font-size: 2rem;
        font-weight: bold;
    }
    
    /* Stack permission tips on mobile */
    #permissionTips .row > div {
        margin-bottom: 15px;
    }
    
    /* Ensure toasts are easily visible */
    .toast-container {
        bottom: 70px !important;
    }
    
    /* UNIFIED container-fluid mobile styles - removes duplicates */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Improve navbar appearance on mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Smaller headings on mobile */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Fix overlapping issues and small tap targets */
    .btn {
        margin-bottom: 5px;
        padding: 8px 12px;
    }
    
    /* Reduce padding to save space */
    .card-body {
        padding: 1rem;
    }
    
    /* Make dropdown menus more usable on mobile */
    .dropdown-menu {
        min-width: 200px;
    }
    
    /* Improve table viewing on small screens */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Profile tabs mobile responsiveness */
    .tab-navigation {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1px;
        overflow-x: auto;
        width: 100%;
    }
    
    .tab-btn {
        flex: 1 1 25%;
        min-width: 60px;
        max-width: 25%;
        padding: 6px 2px;
        font-size: 0.7rem;
        text-align: center;
        border: none;
        background: rgba(108, 99, 255, 0.08);
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        height: 50px;
    }
    
    .tab-btn.active {
        background: #6c63ff;
        color: white;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
        margin-bottom: 1px;
    }
    
    .tab-text {
        font-size: 0.6rem;
        display: block;
        line-height: 1;
    }
}

/* Loading overlay for forms and processing - DISABLED to prevent mobile blocking */
.loading-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -1 !important;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(var(--bs-primary-rgb), 0.3);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: spin-large 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
}

.loading-time {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 8px 16px;
    background-color: rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 8px;
}

.loading-tip {
    max-width: 600px;
    text-align: center;
    font-size: 1rem;
}

@keyframes spin-large {
    to { transform: rotate(360deg); }
}

/* Feature icons on the landing page */
.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Primary color override - use Iris as primary color */
:root {
    --bs-primary: #5D3FD3 !important;
    --bs-primary-rgb: 93, 63, 211 !important;
    --bs-primary-bg-subtle: rgba(93, 63, 211, 0.1) !important;
    --bs-primary-border-subtle: rgba(93, 63, 211, 0.3) !important;
}

.btn-primary, .btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

/* Fix for outline-primary buttons in dark/colored backgrounds */
.bg-primary, .bg-dark, [class*="bg-opacity"] .btn-outline-primary, .btn-outline-primary.text-white {
    border-color: white !important;
    color: white !important;
}

/* Ensure that the buttons show proper hover effects */
.btn-outline-primary.text-white:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    color: white !important;
}

/* Improve form visibility in dark mode */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-check-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .form-check-label,
[data-bs-theme="dark"] .modal-content label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark mode help text in forms and modals */
[data-bs-theme="dark"] .text-info,
[data-bs-theme="dark"] .small.text-info,
[data-bs-theme="dark"] .modal-content .text-info {
    color: rgba(13, 202, 240, 0.9) !important;
}

/* Contact persons modal in dark mode */
[data-bs-theme="dark"] .modal-content {
    background-color: #343a40;
    color: rgba(255, 255, 255, 0.9);
}

/* Dark mode modal close button */
[data-bs-theme="dark"] .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form text always white with colored background */
.form-text {
    color: white !important;
    background-color: var(--bs-primary) !important;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

/* Make sure all form text is always white */
.bg-primary .form-text,
.bg-primary.text-white .form-text,
.card.bg-primary .form-text,
.card.text-white .form-text,
.bg-primary .card-body .form-text,
[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .bg-primary .form-text,
div.card-body .form-text {
    color: white !important;
}

/* Next Steps coloring */
.bg-primary.text-white *,
.card.bg-primary.text-white *,
.card.bg-primary.text-white li,
.card.bg-primary.text-white ol li,
.card.bg-primary.text-white ul li,
.card.bg-primary.text-white h3,
.card.bg-primary.text-white .h5 {
    color: white !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-check-input:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

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

.text-primary {
    color: var(--bs-primary) !important;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Form styling */
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* SWOT analysis cards */
.bg-success-subtle, .bg-danger-subtle, .bg-info-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(var(--bs-info-rgb), 0.1) !important;
}

.bg-orange-subtle {
    background-color: rgba(255, 165, 0, 0.1) !important;
}

/* PDF download button highlight */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Improve tablet layout for benchmarking */
    .col-md-3 {
        width: 50%;
    }
    
    /* Benchmarking metrics tablet sizing */
    .responsive-display {
        font-size: 2.2rem !important;
    }
    
    .card-metric .card-title {
        font-size: 1.1rem !important;
    }
    
    /* Improve tablet display of AI insights sections */
    .col-lg-6 {
        margin-bottom: 20px;
    }
    
    /* Improve form layouts on tablet */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Make buttons more touch-friendly on tablets */
    .btn-group .btn {
        padding: 8px 16px;
    }
    
    /* Optimize business hub cards */
    .col-lg-4 {
        margin-top: 20px;
    }
    
    /* Reduce card margins and padding */
    .card {
        margin-bottom: 15px;
    }
    
    /* Make breadcrumbs more usable */
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    /* Improve nav pills on tablet */
    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    /* Better tab spacing for tablets */
    .nav-item {
        margin-right: 5px;
    }
    
    /* Stack nav items better on smaller screens */
    .flex-column.flex-md-row .nav-item {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* Make nav links more touch-friendly */
    .nav-link {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
}

/* Footer styling */
.footer {
    margin-top: 3rem;
}

/* Answer content styling */
.answer-content ul, .answer-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.answer-content ul li, .answer-content ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

.answer-content ul.list-bullets li {
    list-style-type: disc;
}

.answer-content ul.list-bullets li::before {
    margin-right: 0.5rem;
}

.answer-content h4, .answer-content h5 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.answer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.answer-content a {
    text-decoration: underline;
    color: var(--bs-primary);
}

/* Answer content styling */
.answer-content ul, .answer-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.answer-content ul li, .answer-content ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

.answer-content ul.list-bullets li {
    list-style-type: disc;
}

.answer-content ul.list-bullets li::before {
    margin-right: 0.5rem;
}

.answer-content h4, .answer-content h5 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.answer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.answer-content a {
    text-decoration: underline;
    color: var(--bs-primary);
}

/* Speech-to-text styling */
.speech-mic-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: transparent;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.speech-mic-btn:hover {
    background-color: var(--bs-secondary-bg-subtle);
    color: var(--bs-secondary);
}

.speech-mic-btn.listening {
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger);
    color: var(--bs-danger);
}

.speech-feedback {
    font-size: 0.875rem;
}

.speech-input-wrapper {
    position: relative;
}

/* Airtable source information */
.source-info {
    border-top: 1px dotted var(--bs-secondary);
    padding-top: 8px;
    margin-top: 20px;
    font-style: italic;
}

/* Example section styling */
.example-section {
    background-color: rgba(var(--bs-info-rgb), 0.05);
    border-left: 4px solid var(--bs-info) !important;
}

.example-section h5 {
    color: var(--bs-info);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Analytics charts styling - aggressive overrides */
.bg-primary.text-white.p-3.rounded canvas {
    background-color: var(--bs-primary) !important;
}

.bg-primary.text-white.p-3.rounded .d-flex {
    background-color: var(--bs-primary) !important;
}

.bg-primary.text-white.p-3.rounded div {
    background-color: var(--bs-primary) !important;
}

/* Force all elements inside chart containers to have blue backgrounds */
.bg-primary.text-white.p-3.rounded *,
.bg-primary.text-white.p-3.rounded div *,
.bg-primary.text-white.p-3.rounded .d-flex *,
.bg-primary.text-white.p-3.rounded > div > div > div {
    background-color: var(--bs-primary) !important;
}

/* Special fix for Safari and Chrome */
[data-bs-theme="dark"] .bg-primary.text-white.p-3.rounded > * {
    background-color: var(--bs-primary) !important;
}

/* Admin headers should use the primary color */
.card-header[style*="background-color: #0d6efd"],
.card-header.admin-header {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.card-header[style*="background-color: #0d6efd"] h4, 
.card-header[style*="background-color: #0d6efd"] h5,
.card-header.admin-header h4,
.card-header.admin-header h5 {
    color: white !important;
}
