/* main.css - Unified Risklayer Corporate Styling */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap');

:root {
    /* Risklayer Corporate Palette */
    --rl-blue: #00249e;
    --rl-lightblue: #8092cf;
    --rl-lightestblue: #bfc8e7;
    
    --rl-red: #e9406e;
    --rl-lightred: #f4a0b7;
    --rl-lightestred: #facfdb;
    
    --rl-bg-color: #f5f6fe; /* Very soft blue/grey background */
    --rl-text-main: #141414;
    --rl-text-muted: #808080;
    
    --rl-radius: 1rem; /* 16px rounded corners */
    --rl-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);

    /* --- Extended Semantic Midtones --- */
    --rl-success: #10b981; /* Muted Emerald */
    --rl-success-soft: #d1fae5;
    --rl-warning: #f59e0b; /* Muted Amber */
    --rl-warning-soft: #fef3c7;
    --rl-info: #0ea5e9; /* Soft Cyan */
    
    /* --- Theme Colors (Toned down from pure white) --- */
    --rl-bg-color: #f4f5f9; /* Very soft cool-grey background */
    --rl-surface: rgba(255, 255, 255, 0.75); /* Glass surface */
    --rl-surface-solid: #fcfcfd; /* Off-white solid surface for cards */
    
    --rl-text-main: #1e293b; /* Slate 800 (softer than pure black) */
    --rl-text-muted: #64748b; /* Slate 500 */
    --rl-border: rgba(0, 36, 158, 0.08); /* Soft blue-tinted borders */
    
    /* --- Geometry & Effects --- */
    --rl-radius: 1.25rem; /* Smoother, larger rounding like Stitch */
    --rl-shadow-sm: 0 4px 15px rgba(0, 36, 158, 0.03);
    --rl-shadow-md: 0 10px 30px -5px rgba(0, 36, 158, 0.08);
    --rl-shadow-hover: 0 20px 40px -10px rgba(0, 36, 158, 0.12);

    /* --- MDBootstrap Core Overrides --- */
    --mdb-primary: var(--rl-blue);
    --mdb-secondary: var(--rl-lightblue);
    --mdb-success: var(--rl-success);
    --mdb-danger: var(--rl-red);
    --mdb-warning: var(--rl-warning);
    --mdb-info: var(--rl-info);

    --mdb-primary-rgb: 0, 36, 158;
    --mdb-secondary-rgb: 128, 146, 207;
    --mdb-danger-rgb: 233, 64, 110;
    
    --mdb-body-bg: var(--rl-bg-color);
    --mdb-body-color: var(--rl-text-main);
    --mdb-font-sans-serif: 'Manrope', sans-serif;
    --mdb-body-font-family: 'Manrope', sans-serif;
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 767.98px) {
    /* 1. Tighten Card Paddings */
    .card-body {
        padding: 1rem !important; /* Shrinks from 1.5rem/2rem */
    }
    
    /* 2. Shrink Global Typography */
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
    
    /* 3. Compact Buttons */
    .btn {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
    }

    /* 4. Page Margins */
    main, .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* 5. Hide less critical UI elements to save space */
    .mobile-hide { display: none !important; }
}
@media (max-width: 767.98px) {
        .tab-content { padding-bottom: 80px; }
    }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--rl-bg-color) !important;
    color: var(--rl-text-main) !important;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--rl-blue);
    letter-spacing: -0.02em;
}

a {
    color: var(--rl-red);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--rl-blue); }

/* The Gentle Gradient Background */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(244, 160, 183, 0.15) 0%, rgba(128, 146, 207, 0.15) 100%);
}

.badge {
    padding: 0.5em 0.8em;
    border-radius: 50rem; /* Always fully rounded */
}

/* Predefined Semantic Soft Colors */
.bg-primary-soft { background-color: #e6eafd !important; color: var(--rl-blue) !important; }
.bg-danger-soft { background-color: var(--rl-lightestred) !important; color: var(--rl-red) !important; }
.bg-success-soft { background-color: var(--rl-success-soft) !important; color: var(--rl-success) !important; }
.bg-warning-soft { background-color: var(--rl-warning-soft) !important; color: var(--rl-warning) !important; }

/* Glassmorphism Navbar */
.navbar-risklayer {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar-risklayer .nav-link {
    font-weight: 600;
    color: var(--rl-blue) !important;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
}
.navbar-risklayer .nav-link:hover, .navbar-risklayer .nav-link.active {
    background-color: var(--rl-lightestblue);
    color: var(--rl-blue) !important;
}

/* Global Card Styling (The Risklayer Look) */
.card {
    border: 1px solid var(--rl-border) !important;
    border-radius: var(--rl-radius) !important;
    box-shadow: var(--rl-shadow-sm) !important;
    background: var(--rl-surface-solid);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Add the class 'card-hover' to any card you want to jump up! */
.card:hover, .card-hover:hover {
    transform: translateY(-1px);
    box-shadow: var(--rl-shadow-hover) !important;
}

/* Buttons */
.btn {
    border-radius: 50rem !important; /* Fully rounded pill buttons */
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-primary {
    background-color: var(--rl-red) !important;
    border-color: var(--rl-red) !important;
    
}
.btn-primary:hover {
    background-color: var(--rl-blue) !important;
    border-color: var(--rl-blue) !important;
}
.btn-outline-primary {
    color: var(--rl-blue) !important;
    border-color: var(--rl-blue) !important;
}
.btn-outline-primary:hover {
    background-color: var(--rl-lightestblue) !important;
    color: var(--rl-blue) !important;
}


/* 7. Rounded Progress Bars (Follows Main Color Scheme) */
.progress {
    background-color: rgba(128, 146, 207, 0.15); /* Soft secondary track */
    border-radius: 50rem !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
    overflow: visible; 
}
.progress-bar {
    border-radius: 50rem !important;
   
    position: relative;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Avatars */
.avatar-img {
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Custom Tabs */
.nav-tabs .nav-link {
    color: var(--rl-text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
}
.nav-tabs .nav-link.active {
    color: var(--rl-blue) !important;
    border-color: var(--rl-red) !important;
    background: transparent !important;
}

.bar-meeting {
    pointer-events: none !important;
} 

.command-result-item.active {
        background-color: var(--bs-primary) !important;
        color: white !important;
    }
.command-result-item.active .text-muted, 
.command-result-item.active i {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* 8. Table Hover Animations */
.table { color: var(--rl-text-main) !important; border-color: var(--rl-border) !important; }

.table-hover > tbody > tr {
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.table-hover > tbody > tr:hover > * {
    /* Soft blue highlight on hover */
    background-color: rgba(128, 146, 207, 0.08) !important; 
}

/* 9. Custom Modals & Dropdowns */
.modal-content, .dropdown-menu {
    border-radius: 1rem !important;
    border: 1px solid var(--rl-border) !important;
    box-shadow: var(--rl-shadow-hover) !important;
}
.dropdown-item {
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.dropdown-item:hover { background-color: rgba(128, 146, 207, 0.1) !important; color: var(--rl-blue) !important;}

/* Standard Tasks */
    