:root {
    --secondary: #849C8E;
    --light-shadow: #D8E7E3;
    --mid-tone: #B4C8C4;
    --primary: #8EBFAF;
    --primary-dark: #849C8E;
    --success: #849C8E ; /*#06d6a0;*/
    --danger: #ef476f;
    --warning: #ffd166;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #849C8E;
    --white: #ffffff;
    --body-bg: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Custom Modal Styling */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

.custom-modal.show {
    display: block;
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1051;
}

.custom-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10vh auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1052;
}

.custom-modal-content input:not([type='checkbox']):not([type='radio']),
.custom-modal-content select,
.custom-modal-content textarea {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Special handling for checkboxes and their labels */
.custom-modal-content input[type='checkbox'],
.custom-modal-content input[type='radio'] {
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
}

.custom-modal-content label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.custom-modal-title {
    margin: 0;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.custom-modal-body {
    padding: 1rem;
    /* Ensure proper spacing for form elements */
    max-width: 100%;
}

.custom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Navbar */
.app-navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--light-shadow);
    color: var(--primary);
}

.nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.username {
    font-weight: 500;
}

/* Main content */
.main-content {
    margin-top: 4.5rem;
    padding: 1.5rem 0;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
}

.card-header h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.card-header h5 i {
    font-size: 1.25rem;
    color: var(--primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

.card-body {
    padding: 1.5rem;
}

/* Project cards */
.project-card {
    position: relative;
}

/* On mobile, center cards and limit width */
@media (max-width: 767px) {
    .project-card {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.project-rate {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.project-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-row {
    display: flex;
    gap: 0.75rem;
}

/* Mobile timer buttons */
.timer-btn {
    flex: 1;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.timer-btn i {
    font-size: 1.25rem;
}

.btn-clock-in {
    background-color: var(--primary);
    color: var(--white);
}

.btn-clock-in:hover {
    background-color: var(--mid-tone);
}

.btn-clock-out {
    background-color: var(--danger);
    color: var(--white);
}

.btn-clock-out:hover {
    background-color: #d93e5f;
}

.btn-whole-day {
    background-color: var(--primary);
    color: var(--white);
}

.btn-whole-day:hover {
    background-color: var(--mid-tone);
}

.btn-log-hours {
    background-color: var(--primary);
    color: var(--white);
}

.btn-log-hours:hover {
    background-color: var(--mid-tone);
}

.project-settings {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--gray);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.project-settings:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #d93e5f;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: var(--dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(115, 141, 141, 0.1);
}

.form-text {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background-color: var(--white);
    cursor: pointer;
}

.form-check-label {
    font-size: 1rem;
    cursor: pointer;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-content {
    background-color: var(--white);
    border-radius: 0.75rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Card body enhancements */
.card-body h6.text-muted {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert styling enhancements */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: var(--light-shadow);
    color: #047857;
    border-color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 71, 111, 0.1);
    color: #b91c1c;
    border-color: var(--danger);
}

.alert-info {
    background-color: var(--light-shadow);
    color: var(--dark);
    border-color: var(--primary);
}

/* Utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.d-none {
    display: none !important;
}

/* Responsive display utilities
 * .d-md-inline and .d-md-flex: Hidden on mobile, visible on desktop (≥768px)
 * .d-md-none: Visible on mobile (default display), hidden on desktop (≥768px)
 * Note: .d-md-none elements must have display properties set elsewhere or via inline styles
 */
.d-md-inline {
    display: none;
}

.d-md-flex {
    display: none;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-inline {
        display: inline !important;
    }
    
    .d-md-flex {
        display: flex !important;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark);
        cursor: pointer;
        margin-left: auto;
        padding: 0.5rem;
    }
    
    .mobile-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-divider {
        height: 1px;
        background-color: rgba(0, 0, 0, 0.1);
        margin: 0.75rem 0;
    }
    
    .mobile-menu .nav-link-logout {
        color: var(--danger);
    }
    
    .mobile-menu .nav-link-logout:hover {
        background-color: rgba(239, 71, 111, 0.1);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timer-btn {
        height: 3.5rem;
    }
    
    .action-row {
        width: 100%;
    }
    
    .project-card {
        padding-top: 1.5rem;
    }
    
    /* Ensure all content is properly contained */
    .card,
    .card-body,
    .main-content,
    .row {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Stack burndown chart radio buttons vertically on mobile */
    .card-header .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .card-header .btn-group .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Maximize dashboard content width on mobile - scoped to dashboard only */
    .dashboard-mobile-optimized .container {
        padding: 0 0.5rem; /* Reduced from 1rem */
    }
    
    .dashboard-mobile-optimized .card {
        margin-bottom: 1rem; /* Keep some separation between cards */
        border-radius: 0; /* Remove rounded corners to save space */
    }
    
    .dashboard-mobile-optimized .card-body {
        padding: 0.75rem; /* Reduced from 1.5rem */
    }
    
    .dashboard-mobile-optimized .benchmarking-visualization {
        padding: 0.5rem !important; /* Reduced from p-3 (1rem) */
        border: none !important; /* Remove border to maximize space */
        border-radius: 0.25rem; /* Smaller border radius */
    }
    
    /* Remove row negative margins on mobile for dashboard */
    .dashboard-mobile-optimized .card-body .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .dashboard-mobile-optimized .card-body .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Quick Actions floating button for mobile */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
}

.action-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(115, 141, 141, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(115, 141, 141, 0.4);
}

.action-menu {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    width: 15rem;
    max-width: 90vw;
    display: none;
}

.action-menu.active {
    display: block;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-menu-item:hover {
    background-color: var(--light-shadow);
}

.action-menu-item i {
    font-size: 1.25rem;
    color: var(--primary);
}

.action-menu-item span {
    font-weight: 500;
}

/* Dashboard stats cards */
.stat-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

/* Grid layout */
.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
}

/* Use grid auto-fit for cards on larger screens */
@media (min-width: 768px) {
    .row {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.col-12 {
    box-sizing: border-box;
}

/* On mobile, make col-12 span full width */
@media (max-width: 767px) {
    .col-12 {
        grid-column: 1 / -1;
    }
}

.col-md-6 {
    box-sizing: border-box;
}

.col-md-4 {
    box-sizing: border-box;
}

.col-md-3 {
    box-sizing: border-box;
}

@media (min-width: 768px) {
    /* Hide mobile menu button on desktop */
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Activity list */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Table enhancements for dashboard */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead {
    background-color: var(--light-shadow);
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover,
.table-hover tbody tr:hover {
    background-color: var(--light-shadow);
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.table-sm tbody td {
    padding: 0.75rem 1rem;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.activity-icon {
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--light-shadow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-content {
    margin-left: 2.5rem;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Active project indicator */
.active-indicator {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--success);
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(6, 214, 160, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0);
    }
}

/* Project quick selection dropdown */
.project-select {
    position: relative;
}

.select-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);

/* Benchmark Visualization Styles */
.benchmarking-visualization {
    position: relative;
    background-color: var(--light);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.benchmarking-visualization:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.month-progress {
    position: relative;
    padding: 0 5px;
}

.month-progress-bar {
    width: var(--month-progress-percentage, 0%);
}

.progress-width-0 { width: 0%; }
.progress-width-10 { width: 10%; }
.progress-width-20 { width: 20%; }
.progress-width-30 { width: 30%; }
.progress-width-40 { width: 40%; }
.progress-width-50 { width: 50%; }
.progress-width-60 { width: 60%; }
.progress-width-70 { width: 70%; }
.progress-width-80 { width: 80%; }
.progress-width-90 { width: 90%; }
.progress-width-100 { width: 100%; }

/* Progress bar styling */
.progress {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 0.75rem;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--mid-tone) 100%);
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.chart-bars {
    position: relative;
    padding-bottom: 40px;
    display: flex;
    gap: 10px;
}

.chart-bar {
    position: relative;
    border-radius: 0.5rem 0.5rem 0 0;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 60px;
}

/* Chart Bar Height Classes */
.chart-bar-height-60 { height: 60px; }
.chart-bar-height-75 { height: 75px; }
.chart-bar-height-90 { height: 90px; }
.chart-bar-height-105 { height: 105px; }
.chart-bar-height-120 { height: 120px; }
.chart-bar-height-135 { height: 135px; }
.chart-bar-height-150 { height: 150px; }
.chart-bar-height-165 { height: 165px; }
.chart-bar-height-180 { height: 180px; }
.chart-bar-height-195 { height: 195px; }
.chart-bar-height-210 { height: 210px; }
.chart-bar-height-225 { height: 225px; }
.chart-bar-height-240 { height: 240px; }
.chart-bar-height-255 { height: 255px; }
.chart-bar-height-270 { height: 270px; }
.chart-bar-height-285 { height: 285px; }
.chart-bar-height-300 { height: 300px; }

.chart-bar.actual {
    background-color: var(--primary);
    color: var(--white);
    animation: grow-up 1.2s ease-out forwards;
}

.chart-bar .chart-label {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 5px 0;
}

.benchmark-stat {
    min-width: 120px;
    padding: 1.25rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    border: 1px solid var(--light-shadow);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.benchmark-stat:hover {
    background-color: var(--light-shadow);
    border-color: var(--mid-tone);
    transform: translateY(-1px);
}

.benchmark-stat .d-flex.align-items-center {
    margin-bottom: 0.75rem;
}

.benchmark-stat i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.benchmark-stat .text-muted {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.benchmark-stat .fw-bold {
    color: var(--dark);
    line-height: 1.2;
}

.comparison-chart {
    margin-bottom: 15px;
}

/* Animation for chart bars */
@keyframes grow-up {
    from { height: 0; }
    to { height: var(--target-height, 150px); }
}
    background-color: var(--white);
    text-align: left;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    max-height: 15rem;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.select-options.active {
    display: block;
}

.option-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background-color: var(--light-shadow);
}

.option-item.active {
    background-color: var(--light-shadow);
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

.bi {
    color: var(--black);
}