/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
}

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

.header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-title {
    font-size: 40px;
    font-weight: 800;
    color: #563f1d;
}

.greeting {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-btn span {
    width: 24px;
    height: 3px;
    background-color: #563f1d;
    border-radius: 2px;
}

/* Stats Cards */
.stats-cards {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    padding-right: 24px;
    border-right: 1px solid #e0e0e0;
}

.stat-card:last-of-type {
    padding-right: 0;
    border-right: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customers-icon {
    background-color: #563f1d;
}

.revenue-icon {
    background-color: #3c6791;
}

.orders-icon {
    background-color: #8fb06b;
}

.dollar-sign {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.add-data-btn {
    background: white;
    border: 2px dashed #3c6791;
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #3c6791;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Metrics Section */
.metrics-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
}

.table-header {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.table-row:last-child {
    border-bottom: none;
}

.change-positive {
    color: #4a9d5f;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-blue {
    background-color: rgba(60, 103, 145, 0.2);
    color: #3c6791;  /* Monitor, On Track */
}

.badge-green {
    background-color: rgba(73, 134, 4, 0.2);
    color: #4a8604;  /* Good, Excellent */
}

.badge-yellow {
    background-color: rgba(226, 206, 56, 0.53);
    color: #b8860b;  /* Order Tomorrow */
}

.badge-red {
    background-color: rgba(169, 23, 23, 0.41);
    color: #a91717;  /* Order Today */
}

.badge-gray {
    background-color: rgba(60, 103, 145, 0.2);
    color: #3c6791;  /* Monitor */
}

/* Chart Section */
.chart-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

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

.chart-header .section-title {
    margin-bottom: 0;
}

.chart-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.time-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.time-filter-btn:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.time-filter-btn svg {
    flex-shrink: 0;
    color: #666;
}

.time-filter-container {
    position: relative;
}

.time-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 10;
    margin-top: 4px;
}

.time-filter-dropdown.active {
    display: block !important;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-item:nth-last-child(2) {
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
}

.details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #3c6791;
    font-weight: 600;
    transition: all 0.2s ease;
}

.details-btn:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

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

.chart-container {
    width: 100%;
    height: 280px;
    position: relative;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Chart Tooltip */
.chart-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    display: none;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-tooltip.active {
    display: block;
}

.chart-tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
}

.chart-tooltip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.chart-tooltip-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

/* Bottom Section */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.panel-content {
    padding: 20px;
}

.product-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.products-chart {
    height: 260px;
    position: relative;
}

/* Stock Table */
.stock-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-row {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1fr 1.2fr;
    gap: 12px;
    padding: 12px;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;  /* Add this line for consistency */
}

.stock-item {
    font-weight: 500;
    color: #333;
    font-size: 13px;  /* Make sure this matches */
}

.stock-qty {
    font-weight: 600;
    color: #563f1d;
    font-size: 13px;  /* Make sure this matches */
}

.stock-row span {
    font-size: 13px;  /* Add this to ensure all text in stock-row is same size */
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3c6791;
    box-shadow: 0 0 0 3px rgba(60, 103, 145, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-submit {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-submit {
    background-color: #3c6791;
    color: white;
}

.btn-submit:hover {
    background-color: #2d5070;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Sign In Form Specific Styles */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3c6791;
}

.form-checkbox label {
    margin: 0;
    cursor: pointer;
    color: #666;
    font-weight: 500;
}

.form-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.signup-link {
    color: #3c6791;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.signup-link:hover {
    color: #2d5070;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Weekly Details Page Styles */
.back-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f5f5f5;
    transform: translateX(-2px);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

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

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #563f1d;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-card .card-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.summary-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #27ae60;
}

.stat-change.negative {
    color: #e74c3c;
}

.daily-table {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.table-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body .table-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    align-items: center;
}

.table-body .table-row:last-child {
    border-bottom: none;
}

.table-row .day-name {
    font-weight: 600;
    color: #333;
}

.table-row .amount {
    color: #666;
}

.table-row .profit {
    color: #27ae60;
    font-weight: 600;
}

.table-row .margin {
    color: #3c6791;
    font-weight: 500;
}

.table-row .change {
    font-weight: 600;
}

.table-row .change.positive {
    color: #27ae60;
}

.table-row .change.negative {
    color: #e74c3c;
}
/* 
.insights-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e0e0e0;
}

.insight-card.positive {
    border-left-color: #27ae60;
}

.insight-card.warning {
    border-left-color: #f39c12;
}

.insight-card.info {
    border-left-color: #3c6791;
}

.insight-card.recommendation {
    border-left-color: #8fb06b;
}

.insight-card .insight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.insight-card .insight-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-card .insight-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.insight-card .insight-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.insight-card ul {
    margin: 8px 0 0 20px;
}

.insight-card li {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 4px;
} */

.bottom-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.comparison-row {
    margin-bottom: 20px;
}

.comparison-row:last-child {
    margin-bottom: 0;
}

.comparison-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.comparison-values {
    display: flex;
    gap: 16px;
}

.comparison-value {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-value.current {
    background: #e8f5e9;
}

.comparison-value.previous {
    background: #f5f5f5;
}

.comparison-value .label {
    font-size: 12px;
    color: #666;
}

.comparison-value .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.expense-item:last-child {
    margin-bottom: 0;
}

.expense-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expense-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.expense-amount {
    font-size: 12px;
    color: #666;
}

.expense-bar-container {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 16px;
    overflow: hidden;
}

.expense-bar {
    height: 100%;
    background: linear-gradient(90deg, #3c6791, #5a8bc0);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.expense-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #3c6791;
    min-width: 50px;
    text-align: right;
}

@media (max-width: 900px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .insights-section {
        grid-template-columns: 1fr;
    }
    
    .bottom-panels {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-body .table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
        font-size: 12px;
    }
}

/* Navigation Menu Styles */
.nav-menu {
    max-width: 400px;
}

.nav-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-menu-item:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.nav-menu-item.active {
    background: #e8f5e9;
    border-color: #8fb06b;
    color: #3c6791;
}

.nav-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

