/* Common */
:root {
    --primary: #c41e3a;
}

/* Sidebar and Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1030;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1rem;
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.nav.flex-column {
    padding: 1rem 0 8rem 0;
    margin: 0;
    list-style: none;
}

.nav.flex-column li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav.flex-column .nav-link {
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav.flex-column .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.nav.flex-column .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.nav.flex-column .nav-link.active {
    background: #f8f9fa;
    color: var(--primary);
}

.submenu .nav-link {
    padding-left: 3rem !important;
}

.nav.flex-column .text-danger {
    color: #dc3545 !important;
}

.nav.flex-column .text-danger:hover {
    background: #fff1f1;
}

.nav.flex-column li.mt-auto {
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.nav-link.text-danger {
    color: #dc3545 !important;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link.text-danger:hover {
    background: #fff1f1;
}

.nav-link.text-danger i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Layout adjustments */
.content-wrapper {
    margin-left: 250px;
    padding: 1rem;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background-color: #f5f5f5;
    margin: 0;
    padding: 4px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-item {
    background: white;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    position: relative;
    width: 100%;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product-name {
    padding: 4px;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    padding: 2px 4px 4px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

/* Reports Page */
.reports-container {
    padding: 16px;
}

.report-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.report-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.report-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.report-subtitle {
    font-size: 13px;
    color: #666;
}

.chart-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    color: #6c757d;
}

/* Today Page */
.today-container {
    padding: 16px;
}

.today-header {
    background: white;
    padding: 16px;
    margin: -16px -16px 16px -16px;
    border-bottom: 1px solid #eee;
}

.today-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.today-total {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.transaction-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.transaction-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.transaction-items {
    font-size: 14px;
    color: #333;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Layout */
body {
    background-color: #f5f5f5;
}

.content-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 56px - 56px);
    position: relative;
    padding-top: 12px;
}

.navbar-pos {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--primary);
}

.main-content {
    padding-top: 56px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .content-wrapper {
        padding-bottom: 56px;
        padding-top: 10px;
    }
    
    .product-grid {
        gap: 3px;
        padding: 3px;
    }

    .product-name {
        font-size: 12px;
        padding: 3px;
    }

    .product-price {
        font-size: 13px;
        padding: 2px 3px 3px;
    }
}

.mobile-bottom-nav__icon {
    position: relative;
}

.cart-menu-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-menu-counter.show {
    opacity: 1;
} 