/* Basic Reset to make things look consistent */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f8; /* A nice, soft gray background */
    color: #333;
}

/* --- Layout --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: #1e293b; /* Dark navy blue */
    color: white;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
    color: #38bdf8; /* Light blue accent for the logo text */
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 15px;
    cursor: pointer;
    opacity: 0.8;
}

.sidebar li:hover {
    opacity: 1;
}

/* --- Main Content Area --- */
.main-content {
    flex: 1; /* This makes it take up all remaining space next to the sidebar */
    padding: 30px;
    overflow-y: auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

header select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* --- Summary Cards --- */
.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Soft shadow for depth */
}

.card h3 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 28px;
    font-weight: bold;
}

/* --- Charts Area --- */
.charts-area {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-container {
    height: 300px;
    width: 100%;
}

/* --- Transactions Table --- */
.transactions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#addBtn {
    background-color: #3b82f6; /* Action blue */
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#addBtn:hover {
    background-color: #2563eb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
}

th {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}
/* --- Navigation Styles --- */
.page-view {
    animation: fadeIn 0.3s ease-in-out;
}

.active-nav {
    color: #38bdf8;
    font-weight: bold;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .dashboard-container { 
        flex-direction: column; 
    }
    .sidebar { 
        width: 100%; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        padding: 15px 20px; 
    }
    .sidebar h2 { 
        margin-bottom: 0; 
    }
    .sidebar ul { 
        display: flex; 
        gap: 20px; 
        margin-bottom: 0;
    }
    .summary-cards { 
        flex-direction: column; 
    }
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}