﻿
.content {
    padding-top: 1.1rem;
}

    .content.login {
        padding-top: 0rem;
    }

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*
  ================================================================
  READYRECRUIT.AI THEME
  ================================================================
*/

:root {
    /* --- Brand Colors --- */
    --brand-blue: #006bb7;
    --brand-orange: #fc7300;
    --brand-orange-light: #fff0e3;
    --brand-blue-rgb: 0, 107, 183;
    --brand-orange-rgb: 252, 115, 0;
    /* --- Bootstrap Theme Color Overrides --- */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: var(--brand-blue-rgb);
    --bs-warning: var(--brand-orange);
    --bs-warning-light: var(--brand-orange-light);
    --bs-warning-rgb: var(--brand-orange-rgb);
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #212529;
    /* --- Link Overrides --- */
    --bs-link-color: var(--brand-blue);
    --bs-link-color-rgb: var(--brand-blue-rgb);
    --bs-link-hover-color: #005089;
    /* --- Subtle Backgrounds --- */
    --bs-primary-bg-subtle: #e6f0f8;
    --bs-primary-bg-subtle2: #c7d5e1;
    --bs-primary-text-emphasis: #004070;
    /* --- Gradient & Border Colors --- */
    --brand-light-blue: #e6f0f8;
    --gradient-page-title-light-orange: #fff3e6;
    --border-color: #dee2e6;
    --gradient-direction-page-title: 90deg;
    --brand-purple: #6f42c1;
    --brand-purple-bg-subtle: #ebe5f9;
    --brand-purple-border-subtle: #dcd1f3;
    --brand-purple-text-emphasis: #45297a;
    /* --- NEW MUTED ACCENT COLORS --- */
    --brand-muted-teal: #bfcdd9;
    --brand-muted-sandstone: #fcf5e6;
    --icon-color-muted: #adb5bd;
}

/*
  ================================================================
  FONT OVERRIDES
  ================================================================
*/

body {
    --bs-body-font-family: "museo-sans", sans-serif;
    font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-body-font-family);
    font-weight: 700;
    color: #343a40;
}

.btn {
    font-family: var(--bs-body-font-family);
}

/*
  ================================================================
  COMPONENT-SPECIFIC OVERRIDES
  ================================================================
*/

/* --- Buttons --- */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: #005a9c;
    --bs-btn-hover-bg: #005a9c;
    --bs-btn-hover-border-color: #005089;
    --bs-btn-active-bg: #005089;
    --bs-btn-active-border-color: #004576;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    transition: all 0.15s ease-in-out;
}

    .btn-primary:active {
        transform: translateY(1px);
    }

/* --- NavMenu Active Link --- */
.sidebar .nav-item .nav-link.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* --- Page Gradient Header --- */
.page-header-gradient {
    padding: 1.5rem 2rem;
    margin: -1.1rem -2rem 2rem -2rem;
    border-radius: 0.25rem 0.25rem 0 0;
    background-image: linear-gradient(var(--gradient-direction-page-title), var(--brand-light-blue) 0%, var(--gradient-page-title-light-orange) 100%);
    border-bottom: 1px solid var(--border-color);
}

    .page-header-gradient.reports {
        margin: 0;
    }

    .page-header-gradient h1 {
        color: var(--brand-blue);
    }

/*
  ================================================================
  SHARED STYLES FOR AUTHENTICATION PAGES
  ================================================================
*/

/* --- The Full-Page Container for Auth Pages --- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(-45deg, #dbe9f5, #fff0e3, #dceaff, #fff3e1);
    background-size: 400% 400%;
    animation: subtle-gradient-animation 5s ease infinite;
}

@keyframes subtle-gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- The Centered Card Style --- */
.auth-card {
    max-width: 450px;
    width: 100%;
    border: 1px solid #dee2e6;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
    border-radius: 0.75rem;
    animation: pop-in 0.5s ease-out forwards;
}

    .auth-card .card-body {
        padding: 2rem;
    }

/* --- Shared Logo/Icon Style --- */
. {
    max-height: 50px;
    margin-bottom: 1rem;
}

.confirmation-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- Shared Form Enhancements --- */
.auth-card .form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-blue-rgb), 0.25);
}

/* --- Animation used by the card --- */
@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Cleaner style for all alert boxes --- */
.alert {
    border-width: 0;
    border-left-width: 4px;
    border-radius: 0.25rem;
    text-align: left;
    font-weight: 500;
}

/*
  ================================================================
  STYLES FOR EXTERNAL LOGIN PICKER (REGISTER PAGE)
  ================================================================
*/

.auth-card .col-md-6 section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 100%; 
}

    .auth-card .col-md-6 section form button {
        margin-bottom: 0.5rem; 
        width: 100%; 
    }

.auth-card .col-md-6:has(.vr) {
    display: flex;
    justify-content: center;
}

.auth-card .vr {
    /* Make the line less prominent */
    background-color: #e9ecef;
    opacity: 1;
}

/*
  ================================================================
  STYLES FOR MANAGE ACCOUNT NAVIGATION
  ================================================================
*/

/* Target the links inside the list with the 'manage-nav' class */
.manage-nav .list-group-item {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .manage-nav .list-group-item:hover {
        color: var(--brand-blue);
        transform: translateX(4px); /* A subtle "push out" effect on hover */
    }

    /* 
  This is the distinct style for the active link. 
  Because list-group-item-action doesn't automatically get an 'active' class
  like a NavLink, this style might not apply unless you are on the exact
  /Account/Manage page. The hover effect will be the primary indicator.
*/
    .manage-nav .list-group-item.active {
        color: var(--brand-blue);
        font-weight: 700;
        background-color: transparent;
        border-left: 4px solid var(--brand-blue);
    }

/*
  ================================================================
  STYLES FOR MANAGE ACCOUNT TABS
  ================================================================
*/
.manage-nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: -1px; /* Makes the active tab's border overlap the card's border */
}

    .manage-nav-tabs .nav-link {
        color: #6c757d;
        background-color: transparent;
        border-color: transparent;
        border-bottom-color: #dee2e6;
        font-weight: 500;
    }

        .manage-nav-tabs .nav-link:hover {
            border-color: #e9ecef #e9ecef #dee2e6;
            isolation: isolate;
        }

        /* Style for the active tab */
        .manage-nav-tabs .nav-link.active {
            color: var(--brand-blue);
            background-color: #fff;
            border-color: #dee2e6 #dee2e6 #fff; /* Bottom border becomes white to "cut out" the line */
            font-weight: 700;
        }

/*
  ================================================================
  STYLES FOR SHOW RECOVERY CODES COMPONENT
  ================================================================
*/

/* Style for the container of the recovery codes */
.recovery-codes {
    font-size: 1.1rem; /* Make the codes a bit larger */
    line-height: 2; /* Add vertical spacing between rows of codes */
}

    /* Style for the <kbd> tag to make it look like a code block */
    .recovery-codes kbd {
        background-color: #e9ecef;
        color: #212529;
        padding: 0.2rem 0.4rem;
        font-weight: 700;
    }

/*
  ================================================================
    STYLE FOR FIXED HEADER
  ================================================================
*/
/* For the fixed header */

.fixed-header {
   
    z-index: 1030; /* Ensures it stays on top of other content. Bootstrap's default navbars use z-index 1030. */
    /* Add a background color if your gradient isn't opaque or you want a solid background when scrolling */
    background-color: var(--bs-body-bg, #fff); /* Uses Bootstrap's body background color or white as fallback */
    box-shadow: 0 2px 5px rgba(0,0,0,.1); /* Optional: Adds a subtle shadow for better visual separation */
}

@media (min-width: 992px) {
    .fixed-header {
        position: fixed; /* Makes the element fixed relative to the viewport */
        top: 0; /* Positions it at the very top */
        right: 0; /* Positions it at the very left */
        width: calc(100% - 260px); /* Makes it span the full width of the viewport */
    }

    .content-below-header {
        padding-top: 100px;
    }
}


main > article[b-npgfyz33tw] {
    animation: none !important;
}
/*
  ================================================================
  STYLES FOR REPORTS
  ================================================================
*/
.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: .5rem;
    opacity: 0.7;
}

/* --- SVG Line Chart Styles --- */
.line-chart-grid {
    stroke: #e9ecef; /* Light grid lines */
    stroke-width: 1;
}

.line-chart-path {
    stroke: var(--bs-primary);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-chart-point {
    fill: var(--bs-primary);
    stroke: white;
    stroke-width: 2;
}

/* --- SVG Donut Chart Styles --- */
.donut-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 1rem;
    border-radius: 50%;
}

    .donut-chart::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 65%;
        height: 65%;
        background-color: #fff; /* The color of the card body */
        border-radius: 50%;
        z-index: 2;
    }

/* --- At-a-Glance Stat Cards --- */
.stat-card {
    border: none;
    transition: transform 0.2s ease-in-out;
}

a.stat-card-link {
    text-decoration: none;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card .card-body {
    position: relative;
    padding-top: 2.5rem;
}
.stat-card.bg-info {
    background-color: var(--brand-purple) !important;
}
.stat-icon {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.8rem;
    opacity: 0.2;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Time of Day Bar Chart Styles --- */
.time-chart-container {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    align-items: flex-end;
    gap: 2px;
    height: 130px;
    width: 100%;
}

.time-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.time-bar {
    width: 100%;
    background-color: var(--bs-primary-bg-subtle2);
    border-radius: 2px;
    transition: background-color 0.2s ease-in-out;
    position: relative;
    transform-origin: bottom;
    animation: growBar 1s ease-out forwards;
}

    .time-bar:hover {
        background-color: var(--brand-blue);
    }

.bar-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    white-space: nowrap;
}

.time-bar:hover::after {
    content: attr(data-value) ' conversations';
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #212529;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@media (max-width: 474px) {
    #cbh .bar-label {
        font-size: 0.5rem;
    }
    #cbh .time-bar {
        animation: growBar 1s ease-out forwards;
    }
}

/* Premium Tag Cloud Styles */
.card-dark-inset .card-body {
    background: radial-gradient(ellipse at center, #495057 0%, #212529 100%);
}

.card-dark-inset .card-header {
    background-color: #212529;
    color: #fff;
    border-bottom: 1px solid #495057;
}

.card-body .badge.tag-cloud-item {
    padding: 0.5em 1em;
    font-weight: 700;
    cursor: default;
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
}

    .card-body .badge.tag-cloud-item:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 15px rgba(255,255,255,0.2);
    }

.tag-cloud-item.bg-primary-subtle {
    background-image: linear-gradient(45deg, #0d6efd, #0a58ca) !important;
}

.tag-cloud-item.bg-success-subtle {
    background-image: linear-gradient(45deg, #198754, #146c43) !important;
}

.tag-cloud-item.bg-warning-subtle {
    background-image: linear-gradient(45deg, var(--brand-orange), #d96400) !important;
}

.tag-cloud-item.bg-secondary-subtle {
    background-image: linear-gradient(45deg, #6c757d, #51585e) !important;
}

/* --- SVG Line Chart Axis Label Styles --- */
.line-chart-axis-label {
    font-size: 10px;
    fill: #6c757d; 
}


/* AGENT PROFILE */
/* --- Style for the new Agent Headshot --- */
.agent-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* This makes the image a perfect circle */
    object-fit: cover; /* Ensures the image fills the circle without being stretched */
    border: 4px solid #fff; /* A clean white border inside the shadow */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* A soft drop shadow for depth */
}

/*
  ================================================================
  STYLES FOR CLEAN SECTION HEADERS (Like on Agent Page)
  ================================================================
*/
.section-header-clean {
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6; /* The simple line underneath */
}

    .section-header-clean h2,
    .section-header-clean h4,
    .section-header-clean h5 {
        color: #495057;
        font-weight: 600; /* Slightly less bold than a main title */
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }

    .section-header-clean .bi {
        color: var(--brand-blue);
        margin-right: 0.75rem;
        font-size: 1.2rem;
    }


/*
  ================================================================
  DEFINITIVE "FLOATING WORDS" WORD CLOUD STYLES
  ================================================================
*/

.word-cloud-item {
    font-weight: 700;
    /* Use the primary brand blue for all words for consistency */
    color: var(--brand-blue);
    cursor: default;
    line-height: 1; /* Tighter line height for a cloud-like feel */
    transition: all 0.2s ease-in-out;
}

    .word-cloud-item:hover {
        /* On hover, make the word fully opaque and slightly larger */
        opacity: 1 !important;
        transform: scale(1.1);
        /* Change the color to the brand orange on hover for a nice effect */
        color: var(--brand-orange);
    }




/* --- KPI Card Styles --- */
a.stat-card-link {
    text-decoration: none;
}

.stat-card {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .stat-card:hover {
        border-color: rgba(0,0,0,.2);
        box-shadow: 0 .25rem .75rem rgba(0,0,0,.1);
    }

/* --- Sparkline Styles --- */
.sparkline {
    width: 100%;
    height: 30px;
}

    .sparkline path {
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
        stroke: currentColor;
        opacity: 0.5;
    }

.trend-text {
    font-size: 0.8rem;
    font-weight: 600;
}

    .trend-text.up {
        color: var(--bs-success);
    }

    .trend-text.down {
        color: var(--bs-danger);
    }

    .trend-text.up::before {
        content: '▲ ';
    }

    .trend-text.down::before {
        content: '▼ ';
    }

/* --- Sortable Table Styles --- */
.table-responsive {
    overflow-x: auto;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
}

    .sortable-header:hover {
        background-color: #f8f9fa;
    }

    .sortable-header .bi {
        margin-left: 0.5rem;
        color: var(--brand-blue);
    }

/* --- Recruiter Leaderboard Styles --- */
.recruiter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/*
  ================================================================
  ORIGINAL "FLOATING WORDS" WORD CLOUD STYLES
  ================================================================
*/
.word-cloud-item {
    font-weight: 700;
    color: var(--brand-blue);
    cursor: default;
    line-height: 1;
    transition: all 0.2s ease-in-out;
}

    .word-cloud-item:hover {
        opacity: 1 !important;
        transform: scale(1.1);
        color: var(--brand-orange);
    }

/*
  ================================================================
  AI-POWERED SENTIMENT CLOUD STYLES
  ================================================================
*/

.sentiment-tag {
    padding: 0.5em 1em;
    font-weight: 600;
    cursor: default;
    border: 1px solid;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .sentiment-tag:hover {
        transform: translateY(-3px);
        box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
    }

    .sentiment-tag.sentiment-positive {
        background-color: var(--bs-success-bg-subtle);
        border-color: var(--bs-success-border-subtle);
        color: var(--bs-success-text-emphasis);
    }

    .sentiment-tag.sentiment-neutral {
        background-color: var(--bs-primary-bg-subtle);
        border-color: var(--bs-primary-border-subtle);
        color: var(--bs-primary-text-emphasis);
    }

    .sentiment-tag.sentiment-negative {
        background-color: var(--bs-warning-bg-subtle);
        border-color: var(--bs-warning-border-subtle);
        color: var(--bs-warning-text-emphasis);
    }


/*
  ================================================================
  NEW PRIORITY LEADS STYLES
  ================================================================
*/

.priority-score-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-chart {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start the circle from the top */
}

.circle-bg {
    fill: none;
    stroke: #e9ecef; /* The light gray track */
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    animation: progress-animation 1s ease-out forwards;
}

/* Color coding for the progress bar based on urgency */
.circular-chart.high-urgency .circle {
    stroke: var(--bs-success);
}

.circular-chart.medium-urgency .circle {
    stroke: var(--bs-warning);
}

.circular-chart.low-urgency .circle {
    stroke: var(--bs-secondary);
}

/* Color coding for the score badge */
.badge.high-urgency {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-success-rgb),var(--bs-bg-opacity)) !important;
}

.badge.medium-urgency {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-warning-rgb),var(--bs-bg-opacity)) !important;
}

.badge.low-urgency {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity)) !important;
}


@keyframes progress-animation {
    0% {
        stroke-dasharray: 0 100;
    }
}

/*
  ================================================================
  NEW APPOINTMENT TRACKING STYLES
  ================================================================
*/
.appointment-radial-chart {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

    .appointment-radial-chart svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: rotate(-90deg); /* Start the circle from the top */
    }

    .appointment-radial-chart .progress-bg {
        fill: none;
        stroke: #e9ecef; /* The light gray track */
        stroke-width: 12;
    }

    .appointment-radial-chart .progress-bar {
        fill: none;
        stroke: var(--brand-blue);
        stroke-width: 12;
        stroke-linecap: round;
        animation: radial-progress-animation 1.5s ease-out forwards;
    }

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

@keyframes radial-progress-animation {
    from {
        stroke-dashoffset: 339.292; /* The full circumference (2 * pi * 54) */
    }
}



/* --- NEW: Response Time Breakdown Styles --- */
.response-breakdown {
    margin-bottom: 0.75rem;
}

    .response-breakdown small {
        color: #6c757d;
    }

/* --- NEW: Recruiter Leaderboard Styles --- */
.recruiter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* --- NEW: Recruiter Snapshot Styles --- */
.snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 1199px) {
    .snapshot-item, .appointment-radial-chart {
        margin-bottom: 22px;
    }
}

    .snapshot-item:last-child {
        border-bottom: none;
    }

/* On large screens, add the vertical divider */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6;
    }
}

/* --- ENHANCED Recruiter Snapshot Styles --- */
.snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .snapshot-item:last-child {
        border-bottom: none;
    }

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6;
    }
}

/* --- Pipeline Progress Bar Styles --- */
.pipeline-item .progress {
    background-color: #e9ecef;
}

.pipeline-item .progress-bar.text-danger { /* Custom class for the danger progress bar */
    background-color: var(--bs-danger);
}

.pipeline-item .progress-bar.text-warning { /* Custom class for the warning progress bar */
    background-color: var(--bs-warning);
}

/* --- Upcoming Actions Agenda Styles --- */
.upcoming-actions-list {
    max-height: 250px;
    overflow-y: auto;
}

.date-group .date-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    padding: 0.75rem 0 0.25rem;
    position: sticky;
    top: -1px; /* Helps with scrolling */
    background-color: white;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .action-item:last-child {
        border-bottom: none;
    }

.action-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}




/* REPORTS 7 */
/* --- Add this new class at the top of the file --- */
.bg-muted-subtle {
    background-color: #f8f9fa; /* Bootstrap's standard light gray */
}

/* --- Update the .kpi-sub-card rule --- */
.kpi-sub-card {
    border-width: 1px;
    border-left-width: 5px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 120px;
    display: flex;
}

/* --- (Optional but Recommended) Ensure the reactivated item style exists --- */
.reactivated-item {
    background-color: var(--bs-success-bg-subtle);
    border: 1px solid var(--bs-success-border-subtle);
}

/* ... All other existing CSS remains the same ... */

/* --- ENHANCED KPI Card Styles --- */
.kpi-main-card {
    border: none;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15);
    transition: transform 0.2s ease-in-out;
}

    .kpi-main-card:hover {
        transform: translateY(-5px);
    }

.kpi-sub-card {
    border-width: 1px;
    border-left-width: 5px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 120px; /* THE FIX: Makes the cards slightly taller */
    display: flex; /* Helps with vertical alignment */
}

    .kpi-sub-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
    }

/* Color Mappings */
.border-start-warning {
    border-left-color: var(--bs-warning);
}

.border-start-success {
    border-left-color: var(--bs-success);
}


.text-info {
    color: #0dcaf0 !important;
}
.bg-info-subtle {
    background: var(--brand-purple-bg-subtle) !important;
}

/* --- CORRECTED Color Mappings --- */
.border-start-warning {
    border-left-color: var(--bs-warning);
}

/* Force icon to be purple */


/* --- The Organization Chart Connector Lines --- */
.connector-lines {
    position: relative;
    height: 40px;
    max-width: 83.33%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.line-down {
    height: 20px;
    width: 2px;
    background-color: #dee2e6;
    position: absolute;
    top: 0;
}

.line-across {
    height: 2px;
    width: 100%;
    background-color: #dee2e6;
    position: absolute;
}

.line-down-left, .line-down-right {
    height: 20px;
    width: 2px;
    background-color: #dee2e6;
    position: absolute;
    bottom: 0;
}

.line-down-left {
    transform: translateX(-50%);
}

.line-down-right {
    transform: translateX(50%);
}

/* --- Recruiter Snapshot Styles --- */
.snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .snapshot-item:last-child {
        border-bottom: none;
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6;
    }
}



.kpi-container-card {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    padding-bottom: 1.5rem;
}


/* --- Spiced-Up Recruiter Snapshot Styles --- */

.pipeline-item .progress {
    background-color: #e9ecef; /* The track of the progress bar */
}

/* Custom colors for the progress bars */
.pipeline-item .progress-bar.bg-danger {
    background-color: var(--bs-danger);
}

.pipeline-item .progress-bar.bg-warning {
    background-color: var(--bs-warning);
}

.pipeline-item .progress-bar.bg-info {
    background-color: var(--brand-purple); /* Ensure this uses our purple */
}

/*
  ================================================================
  ENHANCED RECRUITER SNAPSHOT STYLES
  ================================================================
*/

/* Target the list-group inside the snapshot card */
.snapshot-list .list-group-item {
    padding: 1rem; /* More vertical padding for breathing room */
    background-color: transparent; /* Ensure no default background */
    border-bottom: 1px solid #f0f0f0;
}

    .snapshot-list .list-group-item:last-child {
        border-bottom: none;
    }

    /* --- Zebra Striping for Upcoming Actions List --- */
    .snapshot-list .list-group-item:nth-of-type(odd) {
        background-color: #329dff26; /* A very light gray for alternating rows */
        background-color: #d8dbdd;
        background-color: var(--bs-primary-bg-subtle);
    }

/* --- Style for the new Reactivated Leads item --- */
.reactivated-item {
    background-color: var(--bs-success-bg-subtle);
    border: 1px solid var(--bs-success-border-subtle);
}

/* --- NEW: Styles for Integrated KPI Header --- */
.command-center-header.page-header-gradient {
    /* Override default padding to make it taller */
    padding: 1.5rem 2rem;
}

.header-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* --- Keep KPI Sub-Card Styles --- */
.kpi-sub-card {
    border-width: 1px;
    border-left-width: 5px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 120px;
    display: flex;
}

    .kpi-sub-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
    }

.border-start-success {
    border-left-color: var(--bs-success);
}

.border-start-info {
    border-left-color: var(--brand-purple);
}

.text-info {
    color: var(--brand-purple) !important;
}

.command-center-header.page-header-gradient {
    padding: 1.5rem 2rem;
}

.header-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.progress-bar.bg-info {
    background-color: var(--brand-purple) !important;
}


/*
  ================================================================
  USER MANAGEMENT
  ================================================================
*/
.user-card .badge {
    min-width: 100px;
    padding: 10px !important;
    margin: 12px 0;
}

/*
  ================================================================
  NEW: SECTION TITLE WITH INFO ICON & TOOLTIP
  ================================================================
*/

/* The main container for the title and icon */
.section-title-info {
    display: flex;
    align-items: center;
    gap: 0.4rem; 
}

.info-icon {
    font-size: 0.75em;
    color: var(--icon-color-muted);
    cursor: help;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

    .info-icon:hover {
        transform: scale(1.1);
        color: var(--brand-blue);
    }


/*
  ================================================================
  CUSTOM TOOLTIP STYLE OVERRIDE
  ================================================================
*/

.tooltip-inner {
    background-color: var(--bs-primary-text-emphasis) !important;
    color: white!important;
    border-radius: 0.5rem!important;
    padding: 0.5rem 0.75rem!important; /* A little more padding for a better look */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* 
  Target the tooltip's arrow element.
  We need to force its color to match our new background.
  This covers the arrow when it's pointing down (tooltip is on top).
*/
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--bs-primary-text-emphasis)!important;
}

/* This covers the arrow when it's pointing up (tooltip is on the bottom) */
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--bs-primary-text-emphasis)!important;
}

/* This covers the arrow when it's pointing right (tooltip is on the left) */
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--bs-primary-text-emphasis)!important;
}

/* This covers the arrow when it's pointing left (tooltip is on the right) */
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--bs-primary-text-emphasis)!important;
}



@media (max-width: 419px) {
    .auth-container {
        padding: .5rem;
    }
    .auth-card .card-body {
        padding: 1rem;
    }
}


/* REPORTS TWEAK */
.content-below-header {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures this container itself tries to fill space */
}

@media (max-width: 474px) {
    #cbh .bar-label {
        font-size: clamp(0.4rem, 2.5vw, 0.6rem); /* <-- Add this line */
        color: #6c757d;
        margin-top: 0.25rem;
        white-space: nowrap;
    }
    .btn.btn-primary {
        font-size: .85rem;
    }
    .btn.btn-outline-primary {
        margin-bottom: 5px;
    }
}
@media (max-width: 399px) {
    #cbh .bar-label {
        font-size: clamp(0.35rem, 2.5vw, 0.4rem); /* <-- Add this line */
    }
}