/* ============================================
   GENTLEMAN'S GARAGE BRANDING STYLES
   ============================================ */

/* Color Palette:
   - Primary Navy: #1a2332 (Deep sophisticated navy)
   - Secondary Charcoal: #2c3e50 (Rich charcoal)
   - Accent Gold: #d4af37 (Elegant gold)
   - Light Gold: #f4e5b1 (Soft champagne)
   - Silver: #95a5a6 (Premium silver)
   - Dark Silver: #34495e (Dark silver-gray)
   - Success Green: #27ae60 (Professional green)
   - Warning Amber: #f39c12 (Rich amber)
   - Danger Red: #e74c3c (Sophisticated red)
*/

:root {
    --gg-navy: #1a2332;
    --gg-charcoal: #2c3e50;
    --gg-gold: #d4af37;
    --gg-light-gold: #f4e5b1;
    --gg-silver: #95a5a6;
    --gg-dark-silver: #34495e;
    --gg-success: #27ae60;
    --gg-warning: #f39c12;
    --gg-danger: #e74c3c;
    --gg-white: #ffffff;
    --gg-light-gray: #f8f9fa;
    --gg-medium-gray: #6c757d;
}

/* Logo Styling */
.logo-img {
    height: 40px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Enhanced Sidebar Branding */
.sidebar-brand {
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    border-bottom: 2px solid var(--gg-gold);
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    background: linear-gradient(135deg, var(--gg-charcoal) 0%, var(--gg-navy) 100%);
    text-decoration: none;
}

.sidebar-brand-text {
    color: var(--gg-white) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sidebar-brand-text small {
    font-size: 0.85em;
    color: var(--gg-light-gold);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Enhanced Sidebar Navigation */
.bg-gradient-dark {
    background: linear-gradient(180deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-dark .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-dark .nav-item .nav-link:hover,
.sidebar-dark .nav-item .nav-link:focus {
    color: var(--gg-light-gold);
    background-color: rgba(212, 175, 55, 0.1);
    border-left-color: var(--gg-gold);
}

.sidebar-dark .nav-item.active .nav-link {
    color: var(--gg-gold);
    background-color: rgba(212, 175, 55, 0.15);
    border-left-color: var(--gg-gold);
    font-weight: 600;
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    border-color: var(--gg-navy);
    color: var(--gg-white);
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--gg-charcoal) 0%, var(--gg-navy) 100%);
    border-color: var(--gg-gold);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--gg-success) 0%, #229954 100%);
    border-color: var(--gg-success);
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning {
    background: linear-gradient(135deg, var(--gg-warning) 0%, #e67e22 100%);
    border-color: var(--gg-warning);
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--gg-danger) 0%, #c0392b 100%);
    border-color: var(--gg-danger);
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gg-silver) 0%, var(--gg-dark-silver) 100%);
    border-color: var(--gg-silver);
    color: var(--gg-white);
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--gg-light-gray) 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--gg-gold);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: var(--gg-navy);
}

/* Enhanced Page Headers */
.page-header h1,
.page-header .h3 {
    color: var(--gg-navy);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-header .text-muted {
    color: var(--gg-medium-gray) !important;
    font-style: italic;
}

/* Enhanced Topbar */
.topbar {
    background: linear-gradient(135deg, var(--gg-white) 0%, var(--gg-light-gray) 100%);
    border-bottom: 2px solid var(--gg-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topbar-logo {
    height: 30px;
    width: auto;
    margin-right: 0.5rem;
}

.topbar-brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--gg-navy);
    font-size: 0.95rem;
}

.elegant-profile {
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    color: var(--gg-white);
    border: 2px solid var(--gg-gold);
    font-weight: 600;
    transition: all 0.3s ease;
}

.elegant-profile:hover {
    background: linear-gradient(135deg, var(--gg-gold) 0%, #b8941f 100%);
    color: var(--gg-navy);
    transform: scale(1.05);
}

.elegant-dropdown {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-top: 3px solid var(--gg-gold);
}

.elegant-dropdown-item {
    color: var(--gg-navy);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.elegant-dropdown-item:hover {
    background: linear-gradient(135deg, var(--gg-light-gold) 0%, #f0e6c1 100%);
    color: var(--gg-navy);
    padding-left: 2rem;
}

/* Enhanced Footer */
.sticky-footer {
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    color: var(--gg-light-gold);
    border-top: 2px solid var(--gg-gold);
}

/* Enhanced Login Page */
.login-brand-panel {
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    color: var(--gg-white);
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.login-brand-panel > * {
    position: relative;
    z-index: 1;
}

.login-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.mobile-logo {
    height: 50px;
    width: auto;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--gg-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-subtitle {
    color: var(--gg-light-gold);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gg-white);
    font-size: 0.95rem;
}

.feature-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.text-gold {
    color: var(--gg-gold) !important;
}

.text-navy {
    color: var(--gg-navy) !important;
}

.text-navy-dark {
    color: var(--gg-navy) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.elegant-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.elegant-input:focus {
    border-color: var(--gg-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.elegant-btn {
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.3);
}

.elegant-btn:hover {
    background: linear-gradient(135deg, var(--gg-charcoal) 0%, var(--gg-navy) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 35, 50, 0.4);
}

.elegant-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gg-gold), transparent);
    margin: 2rem 0;
}

/* Sidebar stacking: ensure expanded sidebar submenus appear above content cards/header
   but remain below Bootstrap modals (modal z-index ~1050). */
.sidebar-dark {
    z-index: 1030; /* above content (0) but below modals */
}

.sidebar-dark .nav .collapse {
    position: relative;
    z-index: 1031; /* above sidebar base so expanded submenu overlays cards */
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--gg-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: titleSlideIn 1s ease-out 0.5s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-subtitle {
    color: var(--gg-light-gold);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 3rem;
    text-align: center;
    animation: subtitleSlideIn 1s ease-out 1s both;
}

@keyframes subtitleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--gg-gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background pattern for elegance */
.splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="elegantGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(212,175,55,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23elegantGrid)"/></svg>');
    opacity: 0.6;
}

.footer-text-dark {
    color: #fff;
}

.bg-gradient-dark {
    background-color: #363d47;
    background-image: linear-gradient(180deg, #363d47 10%, #000 100%);
    background-size: cover;
}

.flash-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Keep flash messages visible but below modals/backdrops to avoid
       intercepting clicks when a modal is open. Bootstrap modal z-index is
       1050, modal-backdrop is 1040. Use 1030 so flash messages sit under
       modals but above most page content. */
    z-index: 1030;
    width: 300px;
    text-align: left;
}

.flash-message {
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.flash-message.fade-out {
    opacity: 0;
}

html, body {
    height: 100%;
    margin: 0;
}

#wrapper {
    min-height: 100%;
    max-width: 100%;
    display: flex;
    /* flex-direction: column; */
}

#content-wrapper {
    /* flex: 1 0 auto; */
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 0 auto;
}

/* Content fade-in to improve perceived performance
   NOTE: avoid using `transform` here because a transformed ancestor
   creates a new stacking context which can cause Bootstrap modals/backdrops
   to stack incorrectly and intercept clicks. Use opacity-only animation. */
#content {
    opacity: 0;
    transition: opacity 350ms ease-out;
}

#content.content-visible {
    opacity: 1;
}

footer.sticky-footer {
    flex-shrink: 0;
}

.page-header {
    gap: 1.5rem;
}

.page-header-actions {
    gap: 0.5rem;
}

.page-header-actions > * {
    margin: 0;
}

@media (max-width: 767.98px) {
    .page-header {
        align-items: flex-start;
    }

    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.chart-figure {
    display: flex;
    flex-direction: column;
}

.chart-figure figcaption {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

.empty-state {
    border: 2px dashed #d1d3e2;
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #6c757d;
    background-color: #fff;
}

.empty-state .empty-state-icon {
    font-size: 2rem;
    color: #858796;
    margin-bottom: 0.75rem;
}

.stackable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stackable-actions > * {
    margin: 0;
}

@media (max-width: 767.98px) {
    .table[data-mobile-stack] thead {
        display: none;
    }

    .table[data-mobile-stack] tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e3e6f0;
        border-radius: 0.35rem;
        padding: 0.75rem;
    }

    .table[data-mobile-stack] tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 0;
        border-top: none;
    }

    .table[data-mobile-stack] tbody td + td {
        margin-top: 0.5rem;
        border-top: 1px solid #eaecf4;
        padding-top: 0.75rem;
    }

    .table[data-mobile-stack] tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4e73df;
        margin-right: 1rem;
        text-align: left;
    }
}

.order-details-list dt {
    font-weight: 600;
    color: #4e73df;
}

.order-details-list dd {
    margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
    .order-details-list dt,
    .order-details-list dd {
        text-align: left;
    }
}

/* ============================================
   ORDER PAGE IMPROVEMENTS
   ============================================ */

/* Order Info Section */
.order-info-section .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info-section .info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.order-info-section .info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Order Pricing Section */
.order-pricing-section .pricing-row {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-pricing-section .pricing-row:last-child {
    border-bottom: none;
    padding-top: 0.5rem;
}

.service-fee-section {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-fee-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Table Improvements */
@media (max-width: 768px) {
    .table-responsive table[data-mobile-stack="true"] {
        border: 0;
    }
    
    .table-responsive table[data-mobile-stack="true"] thead {
        display: none;
    }
    
    .table-responsive table[data-mobile-stack="true"] tr {
        border: 1px solid var(--border-color);
        display: block;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .table-responsive table[data-mobile-stack="true"] td {
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color-light);
    }
    
    .table-responsive table[data-mobile-stack="true"] td:last-child {
        border-bottom: none;
    }
    
    .table-responsive table[data-mobile-stack="true"] td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    .stackable-actions {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .stackable-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Action Button Improvements */
.stackable-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.stackable-actions .btn {
    flex: 1;
    min-width: auto;
}

.stackable-actions .btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Enhanced Card Styling */
.card.border-0 {
    border: 1px solid var(--border-color-light) !important;
}

.elegant-header {
    /* Use brand navy/charcoal gradient and add a subtle overlay for contrast */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gg-navy) 0%, var(--gg-charcoal) 100%);
    border-bottom: none;
}

.elegant-header::after {
    content: "";
    position: absolute;
    inset: 0;
    /* subtle dark overlay to improve text contrast while preserving the gradient */
    background: rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.elegant-header h6 {
    /* ensure header text is readable on the gradient */
    color: var(--gg-light-gold) !important;
    position: relative; /* bring above the overlay */
    z-index: 1;
}

/* Brand color utilities */
.text-gg-gold {
    color: var(--gg-gold) !important;
}

.text-gg-navy {
    color: var(--gg-navy) !important;
}

/* Dashboard-specific enhancements */
.dashboard-summary-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.dashboard-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-primary-light {
    background-color: rgba(78, 115, 223, 0.1);
}

.bg-success-light {
    background-color: rgba(28, 200, 138, 0.1);
}

.bg-info-light {
    background-color: rgba(54, 185, 204, 0.1);
}

.bg-warning-light {
    background-color: rgba(246, 194, 62, 0.1);
}

.dashboard-chart-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.dashboard-chart-card:hover {
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.12) !important;
}

.chart-container {
    position: relative;
    height: 320px;
}

.dashboard-table-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.dashboard-table-card:hover {
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.12) !important;
}

.dashboard-table {
    font-size: 0.9rem;
}

.dashboard-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gg-charcoal);
    background-color: #f8f9fa;
}

.dashboard-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--gg-gold);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.rank-badge.trending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.font-weight-medium {
    font-weight: 500;
}

/* Enhanced badge styling */
.badge {
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

/* Chart responsive improvements */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    .dashboard-summary-card .card-body {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem !important;
    }
    
    .summary-icon i {
        font-size: 1.5rem !important;
    }
    
    .dashboard-table {
        font-size: 0.8rem;
    }
    
    .rank-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    /* Ensure proper spacing on mobile */
    .me-4 {
        margin-right: 1rem !important;
    }
    
    .me-3 {
        margin-right: 0.75rem !important;
    }
    
    .me-2 {
        margin-right: 0.5rem !important;
    }
}

/* Additional spacing utilities for better consistency */
.icon-spacing {
    margin-right: 1rem;
}

.card-icon-spacing {
    margin-right: 0.75rem;
}

/* Improved chart container consistency */
.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: auto !important;
}

/* Better badge spacing and styling */
.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    line-height: 1;
}

.badge-success {
    background-color: var(--gg-success);
}

.badge-danger {
    background-color: var(--gg-danger);
}

.badge-warning {
    background-color: var(--gg-warning);
}

.badge-primary {
    background-color: var(--gg-navy);
}

/* Loading states */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gg-medium-gray);
}

.table-loading {
    text-align: center;
    padding: 2rem;
    color: var(--gg-medium-gray);
}

/* Export chart functionality styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gg-navy);
}
