/*
 * assets/css/style.css
 * Nyakobura's Collections — Supermarket & Boutique Inventory Management System
 *
 * Shared styles across every page. Loaded as an external file (not
 * inline) so browsers cache it after the first page load — every
 * subsequent page load is faster, which matters given the checkout
 * speed requirement this system was built around.
 */

:root {
    --navy: #1B2A4A;
    --gold: #B8860B;
}

body {
    background: #F4F5F7;
    font-family: 'Segoe UI', sans-serif;
}

/* ---------------- Shared app shell (header.php / sidebar.php) ---------------- */

.topbar {
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .brand {
    font-weight: 600;
}

.topbar .brand small {
    color: var(--gold);
    display: block;
    font-size: 0.7rem;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 52px);
}

.main-content {
    flex: 1;
    padding: 1.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    color: #C7CEDB;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar-nav-link.active {
    color: #fff;
    background: rgba(184, 134, 11, 0.25);
    border-left-color: var(--gold);
}

/* ---------------- Login page ---------------- */

.login-page {
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-brand h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.login-brand p {
    font-size: 0.85rem;
    color: var(--gold);
    margin: 0;
}

.btn-login {
    background: var(--navy);
    color: #fff;
    border: none;
}

.btn-login:hover {
    background: #142038;
    color: #fff;
}

/* ---------------- POS / checkout screen ---------------- */

.pos-cart-qty-input {
    width: 70px;
}
/* ---------------- Business logo ---------------- */
.logo-circle {
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #fff;
}
.logo-circle-sm { width: 44px; height: 44px; }   /* topbar */
.logo-circle-lg { width: 84px; height: 84px; }   /* login screen & settings preview */
.logo-circle-xs { width: 32px; height: 32px; }   /* printed receipt */