﻿/* === ValuEdge Project Options === */

.section_account_dashboard .card-body {
    padding: 0px;
}

.btn-dashboard {
    font-size: 0.85rem;
    border-color: #637141;
    color: #637141;
    border-radius: 40px;
    padding: 5px 10px;
    min-width: 70px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; /* silky smooth btn transition */
}

    .btn-dashboard:hover {
        color: white;
        background-color: #8aa151;
        border-color: #8aa151;
    }

    .btn-dashboard:active,
    .btn-dashboard:focus,
    .btn-dashboard:active:focus {
        background-color: #8aa151 !important;
        border-color: #8aa151 !important;
        color: #fff;
        box-shadow: none;
    }

.btn-danger-dashboard {
    --bs-btn-bg: #c65151;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 40px;
    --bs-btn-hover-bg: #ed0d0d;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-padding-y: 5px;
    --bs-btn-padding-x: 10px;
    font-size: 0.85rem;
    min-width: 70px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; /* smooth transition */
}

.dashboard-table {
    display: flex;
    flex-direction: column;
/*    gap: 1rem;
*/}

.dashboard-header,
.dashboard-row {
    display: grid;
    grid-template-columns: 30% 30% 20% 20%;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0px;
    background-color: #fff;
    align-items: center;
}

.dashboard-header {
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    /*background-color: #f4f4f4;*/
}

.dashboard-row:nth-child(even) {
    background-color: rgba(194, 223, 250, 0.3); /* light blue */
}

.dashboard-col {
    font-family:'Roboto',sans-serif;
    font-size: 0.95rem;
    color: #333;
}

    .dashboard-col.actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start; /* or center/right as you like */
        align-items: center;
        flex-wrap: wrap;
        min-width: 120px; /* prevent collapse if needed */
    }
.project-options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-option {
    flex: 1 1 30%;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* tablet: 2-up */
@media (max-width: 992px) {
    .project-option {
        flex-basis: calc(50% - 1rem);
    }
}

/* phone: 1-up (stack) */
@media (max-width: 576px) {
    .project-option {
        flex-basis: 100%;
    }
}

    .project-option:hover {
        border-color: #99bc44;
        background-color: #f9fff5;
    }

    

    .project-option.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /*.project-option input[type="radio"] {
        position: absolute;
        top: 1rem;
        right: 1rem;
        transform: scale(1.3);
        accent-color: #99bc44;
    }*/

.project-option {
    position: relative; /* required for absolute positioning inside */
}

    .project-option input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #99bc44;
        border-radius: 50%;
        background-color: #fff;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .project-option input[type="radio"]::before {
            content: '';
            display: block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #99bc44;
            transform: scale(0);
            transition: transform 0.2s ease;
        }

        .project-option input[type="radio"]:checked::before {
            transform: scale(1);
        }

    .project-option.selected {
        border-color: #99bc44;
        background-color: #f9fff5; /* <-- this is the missing piece */
        box-shadow: 0 0 0 2px rgba(210, 237, 144, 0.5);
    }
        .project-option.selected:hover {
            background-color: #f9fff5; /* reinforce the selected look even while hovering */
            border-color: #99bc44;
        }

/* SELECT PROJECT - ENTER DATE REVISIONS */

/* Visually hide the native label but keep it for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Outer wrapper for spacing or layout */
.valuation-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Button-like container */
.valuation-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: .75rem 1.25rem;
    cursor: pointer;
    border-radius: 15px;
    border: 1px solid #99bc44;
    background-color: #f9fff5;
    box-shadow: 0 0 0 2px rgba(210, 237, 144, 0.5);
    transition: all 0.3s ease;
    flex-wrap: nowrap; /* 🔥 Prevents label+input from wrapping */
    max-width: fit-content; /* 🔥 Prevents container from stretching too wide */
}

/* Inline label inside */
.valuation-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap; /* 🔥 Keeps the label on a single line */
}

/* Input appearance */
.valuation-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    min-width: 125px;
    color: #333;
    cursor: pointer;
}

    /* Optional styling after selection */
    .valuation-input.used {
        background-color: #ffffff;
        border: 1px solid #ccc;
        box-shadow: none;
    }

.date-filled {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
}


/* END SELECT PROJECT - ENTER DATE REVISIONS */

.project-header {
    font-size: 1.3rem;
    font-weight: 500;
    color: #222;
}

.subtitle {
    display: block;
    font-style: italic;
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.project-details {
    font-size: 0.8rem !important;
    color: #333;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .project-option {
        padding: 1.5rem 1.25rem;
    }

    .dashboard-header,
    .dashboard-row {
        grid-template-columns: 28% 28% 22% min-content;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-col.actions {
        justify-content: flex-start; /* ⬅ Align left */
        flex-wrap: nowrap; /* ⛔ NO wrapping */
        gap: 0.5rem;
    }

    .btn-dashboard,
    .btn-danger-dashboard {
        min-width: 70px;
        padding: 5px 10px;
    }
}

/* MOBILE MENU */

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
    outline: none;
    box-shadow: none !important;
}
.navbar.fixed-top {
    z-index: 1030; /* Bootstrap default, or just ensure it's higher than 999 */
}


/* Slide-in mobile menu */
.mobile-slide-menu {
    position: fixed;
    top: 70px; /* height of top nav */
    left: -100%;
    width: 250px;
    height: calc(100% - 70px);
    background-color: rgba(255, 255, 255, 0.95); /* 👈 transparent white */
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

    .mobile-slide-menu.open {
        left: 0;
    }

.mobile-slide-menu-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .mobile-slide-menu-content a {
        font-size: 1rem;
        font-weight: 600;
        color: #637141;
        text-decoration: none;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

.mobile-slide-menu.open .mobile-slide-menu-content a {
    opacity: 1;
    transform: translateX(0);
}


        .mobile-slide-menu-content a:hover {
            color: #8aa151;
        }


.int-panels {
    background-color: white;
    padding: 3rem 0;
    /*    margin-top: 300px;
*/
}



/* Ensure .cust-sales-card stays within bounds */
.cust-sales-card {
    text-align: center;
}

/* Ensure .financial-wrapper stays within container */
.financial-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    position: relative; /* Keep in normal flow */
}

/* Fix potential overflow in financial-input-group */
.section_financial_steps .financial-input-group {
    background-color: #fdfdfd;
    padding: 1.25rem;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Contain Bootstrap grid overflow */
}

/* Rest of your CSS remains unchanged */
.cust-sales-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #37383a;
}

.cust-sales-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-cust-sales {
    border: 1px solid #aba7a7;
    color: #333333;
    background-color: #f8f8f8;
    border-radius: 40px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

    .btn-cust-sales:hover,
    .btn-cust-sales.active {
        color: white;
        background-color: #8aa151;
        border-color: #8aa151;
    }

.section_financial_steps .form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: #333;
}

.section_financial_steps input.form-control {
    border-radius: 20px;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
}


.accordion-item {
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #fdfdfd;
}

.asset-entry-wrapper {
    padding-top: 2rem;
}

.asset-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fdfdfd;
    transition: all 0.4s ease;
}

    .asset-section.hidden {
        display: none;
    }

.year-input-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.entry-title {
    margin-bottom: 1.0rem !important;
}

.year-col {
    flex: 1 1 14%;
    min-width: 100px;
    text-align: center;
}

    .year-col .form-label {
        font-weight: 500;
        margin-bottom: 0.15rem;
        font-size: 0.9rem;
        color: #333;
        display: block;
    }

    .year-col .form-control {
        border-radius: 20px;
        text-align: center;
        font-size: 0.95rem;
        padding: 0.4rem 0.75rem;
    }

/* Prospective Section Layout */

.prospective-section {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 700px;
    margin: 2rem auto;
    align-items: stretch;
}

/* Each column */
.prospective-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Panel wrapper - matches SI accordion border + radius */
.prospective-panel {
    border: 1px solid var(--acc-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header - matches SI accordion button */
.prospective-header {
    background: linear-gradient(to bottom, #7b8c4e, #637141);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1.4rem;
    box-shadow: 0 4px 1px rgba(222, 212, 130, 0.8);
}

.prospective-title {
    margin: 0;
}

/* Body - matches accordion body */
.prospective-body {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
}

/* Year label and input stacked */
.prospective-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

    .prospective-row label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        font-weight: 500;
        color: #333;
    }

.prospective-input {
    width: 100%;
    max-width: 200px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
}

/* Subtext under EBITDA heading */
.prospective-subtext {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Maintain shared border tone var */
:root {
    --acc-border: rgba(0, 0, 0, 0.125);
}


/* =========================
   Accordion (Unified Styles)
   ========================= */

.accordion-wrapper {
    display: flex;
    justify-content: center;
}

    .accordion-wrapper .form-control {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        font-size: 0.9rem;
        height: calc(1.5em + 0.5rem + 1px);
    }

.accordion {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.accordion-header {
    background-image: linear-gradient(to bottom, #7b8c4e, #637141);
}

.accordion-subtitles {
    font-size: 1.0rem;
    color: #637141;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.fin-data-rows {
    margin-bottom: 10px;
}

.accordion-button {
    background: linear-gradient(to bottom, #7b8c4e, #637141);
    color: white !important;
    text-family: 'Montserrat', Sans Serif !important;
    font-size: 2.2rem !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
    line-height: 0.1 !important;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}

    .accordion-button:not(.collapsed) {
        background: linear-gradient(to bottom, #99bc44, #788c46);
        color: white;
    }

    .accordion-button:focus {
        box-shadow: 0 4px 1px rgba(222, 212, 130, 0.8) !important;
    }

    .accordion-button::after {
        filter: brightness(0) invert(1); /* Forces white regardless of icon */
    }

    /* "Total" row icon */
    .accordion-button.final-total {
        font-weight: 700;
        position: relative;
    }

        .accordion-button.final-total::before {
            font-family: "Font Awesome 6 Free";
            content: "\2b";
            font-weight: 900;
            color: rgba(255, 255, 255, 0.85);
            margin-right: 0.5rem;
            display: inline-block;
            font-size: 1rem;
        }

/* Base item + body */
.accordion-item {
    border: 1px solid #ccc; /* leave existing sides as-is */
    margin-bottom: -1px; /* collapse borders between items */
}

.accordion-body {
    padding: 1.5rem;
}

/* Top item keeps rounded corners */
.accordion-item:first-child {
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden;
}

/* --- Top Nav Search --- */
.search-container .input-group-text,
.search-container .form-control {
    border-color: #e5e5e5; /* Subtle border */
    background-color: #f8f9fa; /* Light gray bg */
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: #99bc44; /* Green focus border matches brand */
    background-color: #fff;
}

.search-container .input-group:focus-within .input-group-text {
    border-color: #99bc44;
    background-color: #fff;
}

/* Middle items: no radius */
.accordion-item:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Smooth fade for collapse */
.accordion-collapse {
    transition: opacity 0.4s ease;
    opacity: 0;
}

    .accordion-collapse.show {
        opacity: 1;
    }

/* =========================
   Single-Item (SI) Accordion
   ========================= */

.SI-accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125) !important; /* match Bootstrap tone */
    margin-bottom: 0;
    border-radius: 20px; /* top + bottom rounded */
    overflow: hidden;
}

    /* Keep the inner layers curved + white */
    .SI-accordion-item .accordion-collapse,
    .SI-accordion-item .accordion-body {
        border-radius: 0 0 20px 20px !important;
        overflow: hidden;
        background: #fff;
    }

.SI-accordion-button {
    background: linear-gradient(to bottom, #5b9bd5, #66ba1);
    color: white !important;
    text-family: 'Roboto', Sans Serif !important;
    font-size: 1.2rem !important;
    font-weight: 500;
    line-height: 0.1 !important;
    padding-top: 1.4rem !important;
    padding-bottom: 1.4rem !important;
    cursor: default;
    border: none;
    display: block;
    box-shadow: 0 4px 1px rgba(222, 212, 130, 0.8) !important;
}

    /* No toggle arrow on SI */
    .SI-accordion-button::after {
        display: none;
    }

/* Ensure SI content is open + visible */
.SI-accordion-item .accordion-collapse {
    display: block !important;
    opacity: 1;
}

/* =========================
   Shared, minimal merge
   ========================= */
:root {
    --acc-border: rgba(0, 0, 0, 0.125); /* Bootstrap's default border tone */
}

/* ORIGINAL ACCORDION: Only adjust the final bottom border + curves */
.accordion .accordion-item:last-child {
    border-bottom-color: var(--acc-border) !important;
    margin-bottom: 0;
    border-radius: 0 0 20px 20px !important;
    overflow: hidden;
}

    .accordion .accordion-item:last-child .accordion-collapse,
    .accordion .accordion-item:last-child .accordion-body {
        border-radius: 0 0 20px 20px !important;
        overflow: hidden;
        background: #fff;
    }


/* DESKTOP ONLY: Add red bottom border to dashboard header */
@media (min-width: 992px) {
    .section_account_dashboard .dashboard-header {
/*        border-bottom: 1px solid #eaeaea;
*/    }
    .section_account_dashboard .card.card-step {
        margin: 1rem auto; /* Adjust as needed */
        max-width: 90%; /* Optional: narrows card without changing container */
        margin-bottom:50px
   }
}


/* MOBILE VIEW — STACKED & COLLAPSIBLE */

@media (max-width: 991.98px) {
    /* Global cleanup for mobile — keep this unscoped */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #d6d8c9;
    }

        /* Scoped reset for Bootstrap and layout container elements within your dashboard */
    .section_account_dashboard .container,
    .section_account_dashboard .row,
    .section_account_dashboard .col-12 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    .dashboard-table {        
        gap: 0;
    }

    /* Scoped card spacing */
    .section_account_dashboard .card {
        margin: 5px;
    }

    .section_account_dashboard .card-body {
        padding: 0px;
    }

    /* Hides header row only in dashboard table */
    .section_account_dashboard .dashboard-row.dashboard-header {
        display: none !important;
    }

    /* Each project container */
    .section_account_dashboard .dashboard-row {
        display: flex !important;
        flex-direction: column;
        padding: 35px 0 0 0;
        border-radius: 0px;
        background-color: #fff;
        margin: 0 0;
     /* background-color:aqua;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);*/   
     }

    /* Label + value pair */
    .section_account_dashboard .dashboard-col {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0.1rem 0.75rem 0.1rem 8rem;
        white-space: normal;
        overflow-wrap: break-word;
        border-bottom: 1px solid #eee;
        min-height: 1.25rem;
        font-size: 0.85rem;
        width: 100%;
    }

        .section_account_dashboard .dashboard-col:not(.no-label)::before {
            content: attr(data-label) ": ";
            position: absolute;
            left: 0.8rem; /* 👈 left "padding" */
            top: 50%;
            transform: translateY(-50%);
            font-weight: bold;
            width: 120px;
            text-align: left;
            color: #666;
            white-space: nowrap;
        }

        .section_account_dashboard .dashboard-col.no-label::before {
            content: none !important;
        }


    /* Scope/Target all rows and specific row */

    .section_account_dashboard .dashboard-row .dashboard-col {
        border-bottom: none; /* Remove default for all */
    }

        /*.section_account_dashboard .dashboard-row .dashboard-col.project-name {
            padding-top: 35px;*/ /* optional, adds spacing below */
        /*}*/

        .section_account_dashboard .dashboard-row .dashboard-col.actions {
            border-bottom: 1px solid #eaeaea;
            padding-bottom: 35px;
            padding-left: 0 !important; /* override the 8rem left padding */
            justify-content: center; /* center buttons horizontally */
            text-align: center;
        }

    /*.section_account_dashboard .dashboard-col.project-name::before {
        padding-top: 22px;*/ /* Adjust as needed */
    /*}*/


    /* Optional: scoped project collapsibles if used */
    .section_account_dashboard .project-header {
        margin-top: 5px;
    }

    .section_account_dashboard .project-options-wrapper {
        flex-direction: column;
    }

    .section_account_dashboard .project-option {
        padding: 0.5rem 1rem;
        flex: 1 1 100%;
    }

    .section_account_dashboard .project-details {
        display: none;
    }

    .section_account_dashboard .project-option.open .project-details {
        display: block;
        margin-top: 0.75rem;
    }
    /* Alternating row background for mobile */
    .section_account_dashboard .dashboard-table .dashboard-row:nth-child(odd):not(.dashboard-header) {
        background-color: rgba(194, 223, 250, 0.3); /* light blue */
    }
    .section_account_dashboard .card.card-step {
        margin-bottom: 50px
    }
}

/* Dashboard table styling */
.section_account_dashboard .table {
    border-collapse: separate;
    border-spacing: 0;
}
.section_account_dashboard .table thead th {
    font-weight: 600;
}
.section_account_dashboard .table td,
.section_account_dashboard .table th {
    vertical-align: middle;
}
.section_account_dashboard .table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(194, 223, 250, 0.3); /* light blue to match design */
}
.section_account_dashboard .table > :not(caption) > * > * {
    background-clip: padding-box; /* keep striping clean to edges */
}

/* Remove top/bottom gap under the title bar on the dashboard */
.section_account_dashboard .step-container {
    padding-block: 0 !important; /* overrides global .step-container padding-block:20px */
}

/* Tighten gap under step title on dashboard */
.section_account_dashboard .step-card > .step-title-wrapper + .step-container {
    padding-top: 0 !important; /* remove the 20px top padding just below the title bar */
}
.section_account_dashboard .step-wrapper-padding {
    padding-top: 0 !important; /* remove extra 1% top padding inside the card */
}

/* === MODERN DASHBOARD STYLES (Added Phase 2 & 3) === */

.dashboard-full-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

/* Header Card (Row 1) */
.dashboard-header-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between; /* Creates the spread layout */
    align-items: center; /* Vertically aligns text and button */
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 1rem;
}

/* Main Body Row (Row 2) */
.dashboard-body-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar Card (Col 1) */
.dashboard-sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    min-width: 200px; /* Fixed width sidebar in card */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    height: 100%; /* If container has height */
    /* Sticky sidebar option */
    position: sticky;
    top: 90px; /* Below top nav */
}

/* Content Column (Col 2) */
.dashboard-content-area {
    flex-grow: 1;
    min-width: 0; /* Important for charts in flex items */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Responsive Adjustments --- */

@media (max-width: 768px) {
    .dashboard-body-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* Make sidebar buttons expand to full width on mobile */
    .dashboard-sidebar-card {
        width: 100%;
        flex-direction: row; /* Horizontal tabs on mobile */
        justify-content: space-between; 
        overflow-x: visible; /* Allow buttons to expand without clip */
        position: static; /* Remove sticky on mobile */
        gap: 0.8rem;
    }

    .dashboard-sidebar-card .dashboard-nav-btn {
        flex: 1; /* Force equal width */
        width: auto; 
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        white-space: nowrap;
    }

    /* Stack Header Card elements */
    .dashboard-header-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }

    .dashboard-header-card .btn-modern-primary {
         width: 100%; /* Full width Create button */
    }

    .greeting-text {
        font-size: 1.5rem; /* Slightly smaller greeting */
    }

    /* Give charts more room on small screens */
    .chart-card {
        padding: 1rem 0.5rem; /* Minimize padding */
    }
}

/* --- Modern Buttons Shared Styles --- */

.btn-modern-primary {
    background-color: #637141;
    color: white !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 113, 65, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

    .btn-modern-primary:hover {
        background-color: #7b8c4e;
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(99, 113, 65, 0.4);
    }

.btn-modern-white {
    background-color: #ffffff;
    color: #637141 !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

    .btn-modern-white:hover {
        background-color: #fdfdfd;
        color: #7b8c4e !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

/* Sidebar Nav Buttons - Using Modern Styles */
.dashboard-nav-btn {
    /* Inherit base properties manually to ensure sidebar specific sizing/layout flows correctly */
    background-color: #ffffff;
    color: #666;
    border-radius: 12px; /* User previous requested rounding */
    padding: 1rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    width: 100%; /* Ensure full width in sidebar */
}

    .dashboard-nav-btn:hover {
        background-color: #fdfdfd;
        color: #637141;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }

    .dashboard-nav-btn.active {
        background-color: #637141;
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(99, 113, 65, 0.3);
        border: none;
    }


/* ... existing stats / charts styles (unchanged mostly, but ensured alignment) ... */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem; /* Added spacing between stats and charts */
}

.stat-card-modern {
    background: white;
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

    .stat-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.stat-separator {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.stat-sub-item {
    text-align: center;
}

.vertical-divider {
    width: 1px;
    background-color: #ddd;
    height: 50px;
}

.sub-value-label {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.2rem;
}

.sub-value-count {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.chart-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

.chart-canvas-wrapper {
    width: 100%;
    flex-grow: 1;
    position: relative;
    /* Ensure charts don't grow infinitely in flex containers */
    min-height: 0;
}

/* Projects Table Modern overrides */
.projects-modern-table-wrapper {
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

    .projects-modern-table-wrapper .table {
        margin-bottom: 0;
    }

        .projects-modern-table-wrapper .table thead th {
            background-color: #f8f9fa;
            border-bottom: 1px solid #ebebeb;
            padding: 1.2rem 1rem;
            color: #555;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .projects-modern-table-wrapper .table tbody td {
            padding: 1.2rem 1rem;
            vertical-align: middle;
            border-bottom: 1px solid #f0f0f0;
            color: #333;
        }

        .projects-modern-table-wrapper .table tbody tr:last-child td {
            border-bottom: none;
        }

        .projects-modern-table-wrapper .table tbody tr:hover {
            background-color: #fcfcfc;
        }

.greeting-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #222;
    margin: 0;
}

.btn-create-new-modern {
    background-color: #637141;
    color: white;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 113, 65, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* Ensure button doesn't shrink */
    flex-shrink: 0;
}

    .btn-create-new-modern:hover {
        background-color: #7b8c4e;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(99, 113, 65, 0.4);
        color: white;
    }

/* --- Project Table Enhancements --- */

/* Checkbox Cell Styling */
.project-checkbox-cell {
    width: 40px;
}

/* Hide checkbox by default */
.project-chk {
    cursor: pointer;
    /* opacity: 0; */ /* Removed opacity to make it always visible */
    transition: opacity 0.2s ease;
}

/* Show checkbox on row hover OR if checked */
.project-select-row:hover .project-chk,
.project-select-row.selected .project-chk,
.project-chk:checked {
    opacity: 1;
}

/* Row selected state styling (optional highlight) */
.project-select-row.selected {
    background-color: #f9fff6 !important;
}

/* Action Bar Animation */
#projects_action_bar {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}


