/* ========== MAIN APPLICATION STYLES ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d5c56;
    --accent: #f59e0b;
    --bg-dark: #0a0f1a;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #253449;
    --bg-input: #0f172a;
    --sidebar-bg: #0c1222;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: #1e293b;
    --border-light: #334155;
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.1);
    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.1);
    --purple: #8b5cf6;
    --pink: #ec4899;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-body);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== APP LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.sidebar-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.nav-item.active i { color: #fff; }
.nav-item i { width: 20px; text-align: center; font-size: 15px; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.logout-btn { color: var(--red) !important; }
.logout-btn:hover { background: var(--red-bg) !important; }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== TOP HEADER ===== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.header-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
}

.menu-toggle:hover { color: var(--text-light); border-color: var(--border-light); }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search i {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    font-size: 13px;
}

.header-search input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px 8px 36px;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: border-color var(--transition);
}

.header-search input:focus { border-color: var(--primary); }

.notif-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    transition: all var(--transition);
}

.notif-btn:hover { color: var(--text-light); border-color: var(--border-light); }

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 28px 32px;
    flex: 1;
}

/* ===== KPI CARDS ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.kpi-income::before { background: var(--green); }
.kpi-expense::before { background: var(--red); }
.kpi-profit::before { background: var(--blue); }
.kpi-projects::before { background: var(--purple); }

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-income .kpi-icon { background: var(--green-bg); color: var(--green); }
.kpi-expense .kpi-icon { background: var(--red-bg); color: var(--red); }
.kpi-profit .kpi-icon { background: var(--blue-bg); color: var(--blue); }
.kpi-projects .kpi-icon { background: rgba(139, 92, 246, 0.1); color: var(--purple); }

.kpi-info { flex: 1; }
.kpi-label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--text-light); }

.kpi-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    position: absolute;
    top: 16px;
    right: 16px;
}

.kpi-badge.green { background: var(--green-bg); color: var(--green); }
.kpi-badge.red { background: var(--red-bg); color: var(--red); }
.kpi-badge.blue { background: var(--blue-bg); color: var(--blue); }

/* ===== CHARTS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.green { background: var(--green); }
.legend-dot.red { background: var(--red); }

.chart-body {
    padding: 20px 24px;
    height: 280px;
}

.donut-wrap { height: 200px; }

.donut-legend {
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-text { flex: 1; color: var(--text-muted); }
.legend-val { color: var(--text-light); font-weight: 600; }

/* ===== BOTTOM GRID ===== */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 { font-size: 15px; font-weight: 600; }

.view-all {
    font-size: 12px;
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.view-all:hover { gap: 8px; }

/* Comparison Card */
.comparison-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.comp-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.comp-item.office .comp-icon { background: var(--blue-bg); color: var(--blue); }
.comp-item.home .comp-icon { background: var(--yellow-bg); color: var(--yellow); }

.comp-info { flex: 1; min-width: 120px; }
.comp-label { font-size: 13px; color: var(--text-muted); display: block; }
.comp-value { font-size: 18px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

.comp-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.comp-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.comp-item.office .comp-bar { background: var(--blue); }
.comp-item.home .comp-bar { background: var(--yellow); }

.comp-stats {
    display: flex;
    border-top: 1px solid var(--border);
}

.stat-mini {
    flex: 1;
    padding: 16px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-mini:last-child { border-right: none; }
.stat-mini span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.stat-mini strong { font-size: 18px; font-family: 'Space Grotesk', sans-serif; color: var(--text-light); }

/* Recent / Pending Lists */
.recent-list, .pending-list { padding: 8px; }

.recent-item, .pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.recent-item:hover, .pending-item:hover { background: rgba(255,255,255,0.03); }

.recent-icon, .pending-status {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.recent-icon.office { background: var(--blue-bg); color: var(--blue); }
.recent-icon.home { background: var(--yellow-bg); color: var(--yellow); }

.pending-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
}

.pending-status.ongoing { background: var(--blue); box-shadow: 0 0 8px rgba(59,130,246,0.4); }
.pending-status.completed { background: var(--green); }
.pending-status.on_hold { background: var(--yellow); }
.pending-status.cancelled { background: var(--red); }

.recent-info, .pending-info { flex: 1; min-width: 0; }

.recent-title, .pending-title {
    font-size: 13px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-meta, .pending-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.recent-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.empty-state-mini {
    text-align: center;
    padding: 32px;
    color: var(--text-dim);
}

.empty-state-mini i { font-size: 24px; margin-bottom: 8px; display: block; }
.empty-state-mini p { font-size: 13px; }

/* Status Badge */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: capitalize;
    flex-shrink: 0;
}

.status-badge.ongoing { background: var(--blue-bg); color: var(--blue); }
.status-badge.completed { background: var(--green-bg); color: var(--green); }
.status-badge.on_hold { background: var(--yellow-bg); color: var(--yellow); }
.status-badge.cancelled { background: var(--red-bg); color: var(--red); }

/* Type Badge */
.type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: capitalize;
}

.type-badge.office { background: var(--blue-bg); color: var(--blue); }
.type-badge.home { background: var(--yellow-bg); color: var(--yellow); }

/* ===== EXPENSE SUMMARY ===== */
.expense-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.summary-card.total::before { background: var(--primary-light); }
.summary-card.office::before { background: var(--blue); }
.summary-card.home::before { background: var(--yellow); }

.summary-card i {
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-card.total i { background: rgba(20, 184, 166, 0.1); color: var(--primary-light); }
.summary-card.office i { background: var(--blue-bg); color: var(--blue); }
.summary-card.home i { background: var(--yellow-bg); color: var(--yellow); }

.summary-label { font-size: 12px; color: var(--text-muted); display: block; }
.summary-card strong { font-size: 20px; font-family: 'Space Grotesk', sans-serif; display: block; margin-top: 2px; }

/* ===== FILTER BAR ===== */
.filter-bar {
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select, .filter-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.filter-select:focus, .filter-input:focus { border-color: var(--primary); }

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 13px;
}

.search-input-wrap input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px 10px 36px;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.search-input-wrap input:focus { border-color: var(--primary); }

.btn-filter {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.btn-filter:hover { background: var(--primary-dark); }

.btn-clear {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.btn-clear:hover { color: var(--text-light); }

/* ===== DATA TABLE ===== */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-dark);
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.amount-cell {
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-light);
}

.empty-table {
    text-align: center;
    padding: 48px 20px !important;
    color: var(--text-dim);
}

.empty-table i { font-size: 32px; margin-bottom: 12px; display: block; }
.empty-table p { font-size: 14px; }

.btn-delete {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all var(--transition);
}

.btn-delete:hover { color: var(--red); background: var(--red-bg); }

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover { color: var(--text-light); border-color: var(--border-light); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition);
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 18px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1); }

.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== ALERT ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.alert.success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.alert.error { background: var(--red-bg); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CLIENT CARDS ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    transition: all var(--transition);
}

.client-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
}

.client-details h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.client-details p {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.client-details p i { width: 16px; font-size: 12px; }

.client-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-count {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.client-since { font-size: 11px; color: var(--text-dim); }

.client-actions {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* ===== PROJECT CARDS ===== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.project-card:hover { border-color: var(--border-light); }

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-title-wrap { display: flex; align-items: center; gap: 12px; }
.project-title-wrap h4 { font-size: 16px; font-weight: 700; }

.project-budget {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-light);
}

.project-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.project-meta-row span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-meta-row span i { font-size: 12px; }

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.status-form select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.status-form select:focus { border-color: var(--primary); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; color: var(--text-muted); ma

/* ===== CATEGORY SPECIFIC STYLES ===== */
.cat-icon-office {
    background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
}

.cat-icon-home {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

.cat-icon-both {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
}

/* Type Badge for 'both' */
.type-badge.both {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

/* ===== ANIMATED DARK/LIGHT MODE TOGGLE ===== */
.theme-toggle-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
}

.theme-toggle-btn i {
    position: absolute;
    font-size: 16px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Sun Icon State (Dark Mode Default) */
.theme-icon-sun { 
    color: #f59e0b; 
    opacity: 1; 
    transform: rotate(0deg) scale(1); 
}

/* Moon Icon State (Dark Mode Default) */
.theme-icon-moon { 
    color: #6366f1; 
    opacity: 0; 
    transform: rotate(180deg) scale(0); 
}

/* ===== LIGHT MODE ACTIVE STATE ===== */
/* When data-theme="light" is on <html>, swap the icons! */
[data-theme="light"] .theme-icon-sun { 
    opacity: 0; 
    transform: rotate(180deg) scale(0); 
}

[data-theme="light"] .theme-icon-moon { 
    opacity: 1; 
    transform: rotate(0deg) scale(1); 
}

/* Light mode button background change */
[data-theme="light"] .theme-toggle-btn {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .theme-toggle-btn:hover {
    border-color: #0f766e;
}

/* ===== EXISTING LIGHT MODE VARIABLES ===== */
/* (Make sure these are still in your file) */
[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    --sidebar-bg: #ffffff;
    --text-light: #1e293b;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --green-bg: rgba(16, 185, 129, 0.1);
    --red-bg: rgba(239, 68, 68, 0.1);
    --blue-bg: rgba(59, 130, 246, 0.1);
    --yellow-bg: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .sidebar { border-right: 1px solid #e2e8f0; }
[data-theme="light"] .sidebar-logo span { color: #1e293b; }
[data-theme="light"] .nav-item { color: #475569; }
[data-theme="light"] .nav-item:hover { background: #f1f5f9; color: #1e293b; }
[data-theme="light"] .nav-item.active { color: #fff; }
[data-theme="light"] .top-header { border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,0.9); }
[data-theme="light"] .menu-toggle { border-color: #e2e8f0; background: #f1f5f9; color: #475569; }
[data-theme="light"] .notif-btn { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
[data-theme="light"] .profile-name { color: #1e293b; }
[data-theme="light"] .header-search input { background: #f1f5f9; border-color: #e2e8f0; color: #1e293b; }
[data-theme="light"] .data-table th { background: #f8fafc; color: #475569; }
[data-theme="light"] .data-table td { border-color: #f1f5f9; color: #334155; }
[data-theme="light"] .filter-select, [data-theme="light"] .filter-input { background: #fff; border-color: #e2e8f0; color: #1e293b; }

/* ===== MODERN TEXTAREA STYLES ===== */
textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

textarea:focus { 
    border-color: var(--primary-light); 
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1); 
}

textarea::placeholder { 
    color: var(--text-dim); 
    font-style: italic; 
}

/* Light Mode Textarea */
[data-theme="light"] textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] textarea:focus { 
    border-color: #0f766e; 
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.05); 
}

[data-theme="light"] textarea::placeholder { 
    color: #94a3b8; 
}

/* ===== ENQUIRIES STYLES ===== */
.enquiries-list { display: flex; flex-direction: column; gap: 16px; }

.enquiry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}

.enquiry-card.unread {
    border-left: 4px solid var(--primary-light);
    background: rgba(20, 184, 166, 0.03);
}

.enquiry-card:hover { border-color: var(--border-light); }

.enq-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.enq-left { display: flex; gap: 12px; align-items: center; }
.enq-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.enq-info h4 { font-size: 15px; color: var(--text-light); margin-bottom: 2px; }
.enq-email { font-weight: 400; color: var(--text-muted); font-size: 13px; }
.enq-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); }
.enq-meta i { margin-right: 4px; }

.enq-right { display: flex; align-items: center; gap: 10px; }
.source-badge { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-bg); padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }
.status-badge.new { background: var(--green-bg); color: var(--green); }
.status-badge.read { background: rgba(148,163,184,0.1); color: var(--text-dim); }

.enq-subject { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.enq-message { font-size: 14px; line-height: 1.6; color: var(--text-light); background: var(--bg-dark); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

.enq-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-read { background: var(--primary); color: #fff; border: none; padding: 6px 14px; border-radius: 6px; font-family: 'DM Sans'; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; }
.btn-read:hover { background: var(--primary-dark); color: #fff; }
.btn-reply { background: var(--blue-bg); color: var(--blue); border: none; padding: 6px 14px; border-radius: 6px; font-family: 'DM Sans'; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; }
.btn-reply:hover { background: var(--blue); color: #fff; }
.enq-actions .btn-delete { font-size: 12px; padding: 6px 14px; border-radius: 6px; background: var(--red-bg); color: var(--red); }
.enq-actions .btn-delete:hover { background: var(--red); color: #fff; }

/* Light mode */
[data-theme="light"] .enquiry-card.unread { background: rgba(20, 184, 166, 0.05); }
[data-theme="light"] .enq-message { background: #f8fafc; }

/* ===== EMAIL TEMPLATE TOGGLE ===== */
.status-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.status-toggle-btn.active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-toggle-btn.inactive { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.status-toggle-btn i { font-size: 16px; }
.status-toggle-btn:hover { opacity: 0.8; transform: scale(1.05); }

/* ===== ELEMENTS THAT SHOULD ONLY SHOW ON MOBILE ===== */
.sidebar-close-btn { 
    display: none !important; 
}
.sidebar-overlay { 
    display: none !important; 
}
.mobile-bottom-nav { 
    display: none !important; 
}
.btn-icon-mobile { 
    display: none !important; 
}