:root {
    --bg-color: #eaf4f7; /* Light blue background from reference */
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    
    /* Soft colors from reference */
    --c-blue: #dce7f9;
    --c-blue-text: #2f569b;
    --c-purple: #e9d6fa;
    --c-purple-text: #7033a8;
    --c-pink: #fcd5e8;
    --c-pink-text: #b82d77;
    --c-yellow: #fcf6cc;
    --c-yellow-text: #8c7f1a;
    
    --c-chart-purple: #8b5cf6;
    --c-chart-light-purple: #c4b5fd;
    --c-chart-pink: #fbcfe8;
    --c-chart-yellow: #fef08a;

    --radius-lg: 24px;
    --radius-md: 12px;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 3rem;
}

.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

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

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--text-main);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* CARDS */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

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

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-dots {
    color: #ccc;
    letter-spacing: 2px;
    cursor: pointer;
}

/* SUMMARY LIST */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
}

.summary-item .val {
    margin-left: auto;
    font-weight: 600;
}

.summary-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 1px solid currentColor;
    background: transparent;
}

.bg-blue { background-color: var(--c-blue); color: var(--c-blue-text); }
.bg-purple { background-color: var(--c-purple); color: var(--c-purple-text); }
.bg-pink { background-color: var(--c-pink); color: var(--c-pink-text); }
.bg-yellow { background-color: var(--c-yellow); color: var(--c-yellow-text); }

/* TABLE */
.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.leads-table td {
    padding: 1rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f9f9f9;
}

.leads-table tr:last-child td {
    border-bottom: none;
}

.td-avatar-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.budget-val {
    font-weight: 600;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    display: none; /* hidden by default */
}

/* CHARTS */
.chart-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.half-doughnut {
    height: 250px;
}

.full-chart {
    height: 300px;
}

.chart-center-text {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.chart-total-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chart-total-val {
    font-size: 2rem;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
