:root {
    --primary: #00677d;
    --on-primary: #ffffff;
    --primary-container: #80d2ec;
    --on-primary-container: #005a6e;
    --secondary: #46636c;
    --secondary-container: #c9e8f3;
    --on-secondary-container: #4c6972;
    --surface: #f7fafb;
    --on-surface: #181c1d;
    --on-surface-variant: #3f484c;
    --outline: #6f797d;
    --outline-variant: #bec8cc;
    --surface-container: #ebeeef;
    --surface-container-high: #e5e9ea;
    --surface-container-highest: #e0e3e4;
    --surface-container-low: #f1f4f5;
    --background: #f7fafb;
    --error: #ba1a1a;
    --success: #10b981;
    --warning: #f59e0b;

    --font-h1: 'Public Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 64px;
    --border-radius: 1rem;
    --border-radius-lg: 2rem;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: -0.025em;
}

.logo-subtext {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--outline);
    margin-top: 4px;
}



.nav-item {
    display: flex;
    items-center: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--on-surface-variant);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.nav-item:hover {
    background-color: var(--surface-container-low);
    color: var(--on-surface);
}

.nav-item.active {
    color: #2563eb;
    background-color: #eff6ff;
    border-right: 4px solid #2563eb;
    font-weight: 700;
}


.upload-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.upload-btn:hover {
    opacity: 0.9;
}

.user-profile {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-container);
    object-fit: cover;
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--outline);
}

/* Top Bar Styles */
.top-bar {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--outline-variant);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;

}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--surface-container-low);
    border: none;
    padding: 8px 12px 8px 40px;
    border-radius: 8px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    font-size: 20px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--surface-container-low);
}

.divider {
    width: 1px;
    height: 24px;
    background: var(--outline-variant);
    margin: 0 8px;
}

.batch-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Main Content Styles */
.main-content {
    padding: 32px;
    max-width: 1440px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-h1);
    font-size: 32px;
    font-weight: 700;
    color: var(--on-surface);
}

.page-subtitle {
    color: var(--on-surface-variant);
    margin-top: 8px;
}

/* Bento Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.stats-column {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--outline-variant);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--outline);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: var(--font-h1);
    font-size: 32px;
    font-weight: 700;
}

.stat-trend {
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success);
    font-weight: 700;
}

/* Chart Card */
.chart-card {
    grid-column: span 8;
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.chart-title {
    font-size: 20px;
    font-weight: 600;
}

.chart-subtitle {
    font-size: 14px;
    color: var(--outline);
}

.chart-select {
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.chart-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-wrapper {
    width: 100%;
    height: 128px;
    background: rgba(128, 210, 236, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.bar-wrapper:hover {
    background: rgba(128, 210, 236, 0.4);
}

.bar-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--primary-container);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bar-label {
    margin-top: 16px;
    font-size: 12px;
    color: var(--outline);
    font-weight: 500;
}

/* Table Card */
.table-card {
    grid-column: span 12;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
    margin-top: 24px;
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--surface-container);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background: var(--surface-container-low);
    border-bottom: 1px solid var(--surface-container);
}

th {
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--outline);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--surface-container-low);
    font-size: 14px;
}

tr:hover {
    background: var(--surface-container-low);
}

.merchant-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merchant-icon {
    width: 32px;
    height: 32px;
    background: var(--surface-container-highest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.merchant-name {
    font-weight: 700;
    color: var(--on-surface);
}

.amount-cell {
    text-align: right;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-processed {
    background: #ecfdf5;
    color: #047857;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
}

/* Mobile FAB */
.fab {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {


    .top-bar {
        left: 0;
        width: 100%;
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .fab {
        display: flex;
    }

    .dashboard-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .stats-column {
        grid-column: span 12;
    }

    .chart-card {
        grid-column: span 12;
        min-height: 400px;
    }

    .page-title {
        font-size: 24px;
    }

    .main-content {
        padding: 16px;
    }
}