body { background:#f6f8fa; }
.box-balance { background: linear-gradient(135deg,#6CC4BF,#8FD7CF); color:#fff; border-radius:10px; padding:18px; }
.box-income { background: linear-gradient(135deg,#6CC44F,#9AD97A); color:#fff; border-radius:10px; padding:18px; }
.box-expense { background: linear-gradient(135deg,#E06B6B,#F6A6A6); color:#fff; border-radius:10px; padding:18px; }
.table td, .table th { vertical-align: middle; }
:root {
    --primary: #6CC4BF;
    --primary-dark: #4e8683;
    --primary-light: #e8f6f5;
    --secondary: #f8fdfc;
    --accent: #ff6b6b;
    --success: #51cf66;
    --warning: #ff922b;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --border: #e6f2f1;
    --text: #495057;
    --text-light: #6c757d;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(108, 196, 191, 0.15);
}
.nav.flex-column {
    padding: 30px 0px;
}
#logoutBtn {
    margin-top: auto; /* Aligns logout to the bottom */
    padding-bottom: 20px;
}
/* Sidebar default */
.dte-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #0f172a;
    color: #fff;
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
}
.dte-sidebar.active {
    transform: translateX(0);
}
/* Content */
.dte-content {
    margin-left: 200px; /* Desktop */
    transition: margin 0.3s ease;
}
/* Lock body scroll when sidebar is active */
body.sidebar-open {
    overflow: hidden;
    height: 100vh;
}
/* dashboard-home */
.dashboard-professional {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafcfb;
    min-height: 100vh;
    max-width: 1440px;           
    margin: 0 auto;
    padding: 0;
}
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M500 50Q600 0 700 50t200 0v50H0V50q100-50 200 0t200-50 200 50z"/></svg>');
    background-size: cover;
    background-position: bottom;
}
.dashboard-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}
.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}
.dashboard-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}
/* Stats Overview */
.stats-overview {
    max-width: 1200px;
    margin: -3rem auto 2rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 3;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    width: fit-content;
    font-weight: 500;
}

.trend-positive {
    background: rgba(81, 207, 102, 0.1);
    color: #2b8a3e;
}

.trend-negative {
    background: rgba(255, 107, 107, 0.1);
    color: #c92a2a;
}
p.dte-section-subtitle {
    padding:20px 0px;
}

/* Main Dashboard Grid */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Cards */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
}

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

/* Chart Styles */
.chart-container {
    height: 280px;
    position: relative;
    margin-top: 0.5rem;
}

.simple-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    padding: 1.5rem 0 1rem;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin: 0 0.375rem;
}

.bar-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
    position: relative;
}

.income-bar {
    background: linear-gradient(to top, var(--primary), var(--primary-dark));
    width: 40%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
}

.expense-bar {
    background: linear-gradient(to top, var(--accent), #ff8787);
    width: 40%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
}

.chart-label {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.data-table th {
    text-align: left;
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1.125rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: var(--primary-light);
    transform: translateX(4px);
}

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

.amount-positive {
    color: var(--primary-dark);
    font-weight: 600;
}

.amount-positive::before {
    content: '+';
}

.amount-negative {
    color: var(--accent);
    font-weight: 600;
}

.amount-negative::before {
    content: '-';
}

.category-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.account-name {
    font-weight: 600;
    color: var(--dark);
}

.account-balance {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    background: var(--light);
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Quick Insights */
.quick-insights {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.insight-card {
    background: var(--primary-light);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.insight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.insight-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}




@media (min-width: 1500px) {

     .custom-sidebar {
        position: fixed;
        width: 10%;
        left: 0;
        top: 0;
        height: 100vh;
    }

    #dte-content-area {
        margin-left: 10%;
        width: calc(100% - 10%);
        padding: 0 32px;            
        box-sizing: border-box;
        overflow-x: hidden;
    }
     
}


@media (min-width: 1540px) {

    #dte-content-area {
        margin-left: 10%;
        width: calc(100% - 10%);
        padding: 30px 60px !important;            
        box-sizing: border-box;
        overflow-x: hidden;
    }
     
}

@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        overflow: scroll;

    }
    stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dte-sidebar{
        width: 180px;
    }
    .dte-premium-header{
        border-radius: 0px; 
     margin: 0px
    }
}

@media (min-width: 1024px) and (max-width: 1499px) {

    .dashboard-professional {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #dte-content-area {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }
}


/* Desktop */
@media (min-width: 992px) {
    .dte-sidebar {
        transform: translateX(0);
    }
      /* .dte-sidebar{
        width: 180px;
    } */
}
/* Mobile & Tablet */
@media (max-width: 991px) {
    .dte-sidebar {
        transform: translateX(-100%);
    }

    .dte-sidebar.show {
        transform: translateX(0);
    }
    
.custmo-close {
    justify-content:end;
    margin: 1.75rem -0.25rem;
}
}

@media (max-width: 768px) {
    .dte-content {
        margin-left: 0;
    }
    .dashboard-card{
    overflow: scroll;

    }
      .dte-sidebar{
        width: 180px;
    }
    
    .custmo-close {
    justify-content:end;
    margin: 1.75rem -0.25rem !important;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
.custmo-close {
    justify-content:end;
    margin: 1.75rem -0.25rem;
}
}
