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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

header > * {
    max-width: 1280px;
    margin: 0 auto;
}

.header-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coffee-icon {
    width: 28px;
    height: 28px;
    color: #bf6e26;
}

.brand-name {
    font-size: 24px;
    font-weight: 600;
    color: #bf6e26;
    letter-spacing: -0.48px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.current-date {
    font-size: 24px;
    font-weight: 500;
    color: #bf6e26;
    letter-spacing: -0.08px;
}

.notification-btn {
    position: relative;
    background: #f9faf8;
    border: 1px solid #3a6b5a;
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell-icon {
    width: 24px;
    height: 24px;
    color: #3a6b5a;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

/* Notification Popup */
.notification-popup {
    position: absolute;
    top: 45px;
    right: 0;
    background: #f9faf8;
    border: 1px solid #3a6b5a;
    border-radius: 16px;
    padding: 24px;
    width: 340px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.notification-popup.show {
    display: block;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 20px;
    text-align: left;
}

.stock-table {
    width: 100%;
    margin-bottom: 20px;
}

.stock-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(58, 107, 90, 0.2);
}

.stock-header-item {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.stock-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 12px;
    margin-bottom: 8px;
}

.stock-item {
    font-size: 14px;
    color: #000000;
}

.stock-item.urgent {
    color: #ef4444;
    font-weight: 500;
}

.popup-details-btn {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid rgba(58, 107, 90, 0.7);
    border-radius: 12px;
    color: #3a6b5a;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-details-btn:hover {
    background: rgba(58, 107, 90, 0.1);
}

/* Main Content */
main {
    padding: 32px 64px;
    overflow: visible;
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    display: flex;
    min-width: 336px;
    padding: 32px 24px 24px 24px;
    flex-direction: column;
    align-items: center;
    flex: 1 0 0;
    background: #f9faf8;
    border: 1px solid #3a6b5a;
    border-radius: 16px;
    box-shadow: 0 0 4.4px rgba(0,0,0,0.06), 0 5px 19px rgba(0,0,0,0.08);
}

.stat-card-title {
    font-size: 32px;
    font-weight: 400;
    color: #3a6b5a;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.16px;
}

.stat-card-value {
    font-size: 56px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: -1.12px;
    text-align: center;
}

.stat-card-change {
    font-size: 16px;
    font-weight: 500;
    color: #3a6b5a;
    margin-bottom: 24px;
    text-align: center;
}

.view-details-btn {
    width: 100%;
    max-width: 288px;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid rgba(58, 107, 90, 0.7);
    border-radius: 12px;
    color: #3a6b5a;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.view-details-btn:hover {
    background: rgba(58, 107, 90, 0.1);
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    overflow: visible;
}

@media (min-width: 1024px) {
    .charts-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        overflow: visible;
    }
}

/* Weekly Analysis */
.weekly-analysis {
    display: none;
    background: #f9faf8;
    border: 1px solid #3a6b5a;
    border-radius: 16px;
    padding: 32px 64px 24px 64px;
    min-width: 336px;
    width: 100%;
}

@media (min-width: 1024px) {
    .weekly-analysis {
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-column: span 2;
        grid-row: span 2;
    }
}

.weekly-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.weekly-title {
    font-size: 32px;
    font-weight: 600;
    color: #3a6b5a;
    margin-bottom: 16px;
    text-align: center;
}

.legend-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-line {
    width: 36px;
    height: 2px;
}

.legend-line.revenue {
    background: #ef4444;
}

.legend-line.target {
    border-top: 2px dashed #3b82f6;
}

.legend-text {
    font-size: 12px;
    color: #3a6b5a;
}

.toggle-buttons {
    display: inline-flex;
    border: 1px solid #3a6b5a;
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    padding: 4px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #000000;
    min-width: 80px;
    text-align: center;
}

.toggle-btn.active {
    background: rgba(58, 107, 90, 0.3);
}

.toggle-btn:not(:last-child) {
    border-right: 1px solid #3a6b5a;
}

.chart-area {
    width: 100%;
    height: 550px;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-area iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 550px;
}

.chart-placeholder {
    text-align: center;
    color: #9ca3af;
}

/* Top Products */
.top-products {
    background: #f9faf8;
    border: 1px solid #3a6b5a;
    border-radius: 16px;
    padding: 16px 32px 24px;
    box-shadow: 0 0 4.4px rgba(0,0,0,0.06), 0 5px 19px rgba(0,0,0,0.08);
    min-width: 336px;
    width: 100%;
}

.products-title {
    font-size: 32px;
    font-weight: 600;
    color: #3a6b5a;
    text-align: center;
    padding: 0;
    margin: 0;
    height: 48px;
    line-height: 48px;
}

.products-list {
    display: grid;
    padding: 16px 80px 0 80px;
    row-gap: 10px;
    column-gap: 10px;
    grid-template-rows: repeat(6, fit-content(100%));
    grid-template-columns: fit-content(100%) fit-content(100%) minmax(0, 1fr);
}

.product-rank {
    text-align: center;
    grid-column: 1;
}

.product-rank.top {
    font-size: 24px;
    font-weight: 500;
    color: #214138;
}

.product-rank.normal {
    font-size: 16px;
    font-weight: 400;
    color: #6f706f;
}

.product-name {
    text-align: left;
    grid-column: 2;
}

.product-name.top {
    font-size: 24px;
    font-weight: 400;
    color: #214138;
}

.product-name.normal {
    font-size: 16px;
    font-weight: 400;
    color: #6f706f;
}

.product-count {
    text-align: center;
    grid-column: 3;
}

.product-count.top {
    font-size: 24px;
    font-weight: 500;
    color: #214138;
}

.product-count.normal {
    font-size: 16px;
    font-weight: 400;
    color: #6f706f;
}

/* Payment Methods */
.payment-methods {
    background: #f9faf8;
    border: 1px solid #3a6b5a;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 0 4.4px rgba(0,0,0,0.06), 0 5px 19px rgba(0,0,0,0.08);
    min-width: 336px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-title {
    font-size: 32px;
    font-weight: 600;
    color: #3a6b5a;
    text-align: center;
    margin-bottom: 0;
}

.payment-chart-container {
    width: 100%;
    height: 360px;
    position: relative;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: visible;
}

.payment-chart {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Footer */
footer {
    padding: 32px 64px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    header, main, footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .current-date {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stat-card-title {
        font-size: 28px;
    }
    
    .stat-card-value {
        font-size: 48px;
    }
}
