/**
 * Custom Theme Overrides
 * Palette: 
 * Dark: #001233, #001845, #002855
 * Medium: #023E7D, #0353A4, #0466C8
 * Grey: #5C677D, #33415C, #979DAC, #7D8597
 */

:root, [data-pc-preset="preset-1"] {
    /* Primary Color - Bright Blue */
    --bs-blue: #0466C8;
    --bs-primary: #0466C8;
    --bs-primary-rgb: 4, 102, 200;
    
    /* Secondary Color - Grey Blue */
    --bs-secondary: #5C677D;
    --bs-secondary-rgb: 92, 103, 125;

    /* Success Color - Navy (replacing Green for icons/badges where applicable to theme) */
    /* We keep semantic green for alerts but override for UI elements if needed */
    /* --bs-success: #023E7D; */ 
    
    /* Links */
    --bs-link-color: #0466C8;
    --bs-link-hover-color: #0353A4;

    /* Sidebar Active Item */
    --pc-sidebar-active-color: #0466C8;

    /* Headings & Text */
    --pc-heading-color: #001233;
    --bs-body-color: #33415C;
}

/* Sidebar Customization */
[data-pc-theme="dark"] .pc-sidebar,
.pc-sidebar-dark {
    background-color: #001233 !important;
}

[data-pc-theme="dark"] .pc-header {
    background-color: #001233 !important;
}

/* Button Overrides */
.btn-primary {
    background-color: #0466C8 !important;
    border-color: #0466C8 !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #0353A4 !important;
    border-color: #0353A4 !important;
}

.btn-secondary {
    background-color: #5C677D !important;
    border-color: #5C677D !important;
}

/* Wallet Cards Customization */
.card-wallet-balance {
    background: linear-gradient(135deg, #0466C8 0%, #023E7D 100%) !important;
    border: none;
}
.card-wallet-locked {
    background: linear-gradient(135deg, #5C677D 0%, #33415C 100%) !important;
    border: none;
}
.card-wallet-invested {
    background: linear-gradient(135deg, #002855 0%, #001233 100%) !important;
    border: none;
}
.card-wallet-receivable {
    background: linear-gradient(135deg, #0353A4 0%, #001845 100%) !important;
    border: none;
}

/* Badge & Icon Background Overrides - Theming Everything Blue/Navy */

/* Primary (Blue) */
.bg-light-primary {
    background-color: rgba(4, 102, 200, 0.1) !important;
    color: #0466C8 !important;
}
.badge.bg-light-primary {
    border: 1px solid rgba(4, 102, 200, 0.2);
}

/* Success (Mapped to Navy/Blue for Icons) */
.bg-light-success {
    background-color: rgba(2, 62, 125, 0.1) !important; /* Navy tint */
    color: #023E7D !important;
}
.badge.bg-light-success {
    border: 1px solid rgba(2, 62, 125, 0.2);
}

/* Warning (Mapped to Grey/Blue for Icons) */
.bg-light-warning {
    background-color: rgba(92, 103, 125, 0.1) !important; /* Grey tint */
    color: #5C677D !important;
}
.badge.bg-light-warning {
    border: 1px solid rgba(92, 103, 125, 0.2);
}

/* Danger (Mapped to Darker Navy or kept Red? User said "everything" new colors) */
/* Let's keep red for critical errors but use Navy for UI elements if used */
/* We'll stick to standard red for Danger to avoid confusion, but desaturated */
.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}
.badge.bg-light-danger {
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Info (Mapped to Light Blue) */
.bg-light-info {
    background-color: rgba(3, 83, 164, 0.1) !important;
    color: #0353A4 !important;
}

/* Text Colors */
.text-primary { color: #0466C8 !important; }
.text-secondary { color: #5C677D !important; }

/* Override Success Text in Icons */
.text-success {
    color: #023E7D !important; /* Navy */
}
.text-warning {
    color: #5C677D !important; /* Grey */
}

/* Logo Sizing */
.b-brand svg {
    height: 40px; /* Adjust as needed */
    width: auto;
    max-width: 180px;
    color: currentColor; /* Inherits text-primary or white */
}

/* Sidebar Logo Color Fix */
[data-pc-theme="light"] .pc-sidebar .b-brand {
    color: #001233; /* Dark text for light sidebar */
}

[data-pc-theme="dark"] .pc-sidebar .b-brand {
    color: #ffffff; /* White text for dark sidebar */
}

/* Background Utility Classes */
.bg-navy-dark { background-color: #001233 !important; }
.bg-navy-medium { background-color: #001845 !important; }
.bg-navy-light { background-color: #002855 !important; }
.bg-blue-primary { background-color: #0466C8 !important; }
.bg-blue-800 { background-color: #023E7D !important; } /* Added for Profile Card */

/* Custom Welcome Banner */
.welcome-banner {
    background: linear-gradient(45deg, #001233, #023E7D) !important;
}

/* Icon Overrides in Cards */
.avtar-s svg {
    stroke: currentColor !important;
}

/* Fix User Avatar Shape */
.user-avtar.rounded-circle {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
}

/* ------------------------------------------------------------------------- */
/* GLOBAL TABLE FIXES - REMOVED PER USER REQUEST */
/* ------------------------------------------------------------------------- */
/*
.table-responsive {
    overflow-x: auto !important; 
}
*/
