:root {
    --primary-color: #0d6efd;
    --background-color: #f4f6f9;
    --text-color-dark: #212529;
    --text-color-light: #6c757d;
    --white-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --border-color: #e9ecef;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--background-color);
}

.pos-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

main#main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bottom-nav {
    flex-shrink: 0;
    height: 65px;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px var(--shadow-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 0.85rem;
    flex-grow: 1;
    position: relative;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.nav-item span {
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 30px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 100%;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white-color);
    margin-bottom: 12px;
}

.icon-revenue { background-color: #0d6efd; }
.icon-revenue-today { background-color: #6f42c1; } /* New Color */
.icon-profit { background-color: #fd7e14; }
.icon-products { background-color: #0dcaf0; }
.icon-orders { background-color: #198754; }
.icon-orders-today { background-color: #d63384; } /* New Color */


.card-details {
    width: 100%;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-color-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}