:root {
    --bg-light: #F0F4F8;
    --surface-white: #FFFFFF;
    --surface-dark: #1E1E24;
    --accent-lime: #D4F238;
    /* That neon lime from the image */
    --accent-lime-text: #1a1a1a;
    --text-dark: #1E1E24;
    --text-grey: #8A94A6;
    --trust-green: #10B981;
    --card-radius: 24px;
}

body {
    background-color: var(--bg-light);
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

/* --- Layout --- */
.dashboard-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* --- Sidebar --- */
.sidebar {
    width: 80px;
    background: var(--surface-white);
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.brand-icon {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.nav-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--text-grey);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-icon.active {
    background-color: var(--text-dark);
    color: var(--accent-lime);
}

.nav-icon:hover:not(.active) {
    background-color: #f5f5f5;
    color: var(--text-dark);
}

/* --- Main Content --- */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* --- Top Bar --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.nav-pills-custom {
    background: var(--surface-white);
    padding: 5px;
    border-radius: 50px;
    display: inline-flex;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    gap: 5px;
}

.nav-pill {
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-pill.active {
    background-color: var(--accent-lime);
    color: var(--accent-lime-text);
    font-weight: 700;
}

/* --- Stats Row --- */
.stats-row {
    display: flex;
    gap: 20px;
}

.stat-card {
    flex: 1;
    background: var(--surface-white);
    padding: 25px;
    border-radius: var(--card-radius);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-grey);
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-top: 5px;
}

/* --- Progress Bar inside card --- */
.progress-micro {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-lime);
    width: 70%;
}

/* --- Dark Section (The Filter List) --- */
.listings-section {
    background: var(--surface-dark);
    border-radius: var(--card-radius);
    padding: 30px;
    color: #fff;
    flex: 1;
    /* take remaining height */
    display: flex;
    flex-direction: column;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #aaa;
    margin-right: 10px;
    cursor: pointer;
}

.filter-chip.active {
    background: var(--accent-lime);
    color: var(--accent-lime-text);
    font-weight: 700;
    border-color: var(--accent-lime);
}

/* --- Listing Item --- */
.listing-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.listing-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.listing-row.highlight {
    background: rgba(44, 44, 54, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.listing-row.highlight::after {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-lime);
    color: black;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.prop-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-right: 20px;
}

.prop-info {
    flex: 2;
}

.prop-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.prop-sub {
    font-size: 0.8rem;
    color: #888;
}

.trust-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 100px;
    text-align: center;
}

.action-btn-lime {
    background: var(--accent-lime);
    color: var(--accent-lime-text);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Right Panel (Context/Detail) --- */
.detail-panel {
    width: 320px;
    background: #E8EBF2;
    /* Slightly darker than bg */
    border-radius: var(--card-radius);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-card {
    background: var(--surface-white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.user-avatars {
    display: flex;
}

.user-avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}


/* --- Responsive Media Queries --- */

/* Tablet & Mobile (Max Width 1024px) */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
        padding: 10px;
        height: auto;
        /* Allow scrolling on mobile */
        overflow-y: auto;
    }

    body {
        height: auto;
        /* Allow scrolling */
        overflow: auto;
    }

    /* Hide Sidebar on Tablet/Mobile, maybe show top/bottom bar instead */
    .sidebar {
        display: none;
        /* Simplification for prototype: hide sidebar */
    }

    .main-area {
        width: 100%;
        overflow: visible;
    }

    .detail-panel {
        display: none;
        /* Hide detail panel by default on mobile */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        z-index: 1000;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .detail-panel.show-mobile {
        display: flex;
        transform: translateY(0);
    }

    /* Show a close button for detail panel on mobile */
    .detail-panel::before {
        content: '';
        width: 40px;
        height: 5px;
        background: #ccc;
        border-radius: 10px;
        align-self: center;
        margin-bottom: 15px;
    }

    .stats-row {
        flex-direction: column;
    }

    .stat-card {
        min-height: auto;
    }
}

/* Mobile Specific (Max Width 768px) */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-bar>div {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-pills-custom {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}