/* NOA Food POS Stylesheet - Crimson Red & Golden Amber Edition */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Outfit:wght@400;600;700;900&display=swap');

:root {
    --pos-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --pos-primary: #DC2626;
    --pos-primary-hover: #B91C1C;
    --pos-secondary: #F59E0B;
    --pos-dark: #0F172A;
    --pos-sidebar-bg: #0F172A;
    --pos-sidebar-color: #FCA5A5;
    --pos-body-bg: #FEF2F2;
    --pos-card-bg: #FFFFFF;
    --pos-border: #FCA5A5;
    --pos-radius: 14px;
    --pos-shadow: 0 4px 20px -2px rgba(220, 38, 38, 0.12);
    --pos-shadow-hover: 0 12px 28px -4px rgba(185, 28, 28, 0.25);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--pos-font);
    background-color: var(--pos-body-bg);
    color: #0F172A;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#wrapper {
    display: flex;
    width: 100%;
    min-width: 100%;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: var(--pos-sidebar-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s ease;
    z-index: 1040;
    box-shadow: 4px 0 25px rgba(0,0,0,0.2);
    overflow-y: auto;
    max-height: 100vh;
}

#sidebar .sidebar-brand {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#sidebar .sidebar-brand-text {
    font-weight: 900;
    font-size: 1.3rem;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    font-family: 'Outfit', 'Roboto', sans-serif;
}

#sidebar .sidebar-menu {
    padding: 1rem 0.75rem;
    list-style: none;
    margin: 0;
}

#sidebar .menu-header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F59E0B;
    padding: 0.85rem 1rem 0.35rem;
}

#sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    color: #FCA5A5;
    font-weight: 500;
    font-size: 0.86rem;
    border-radius: 9px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
}

#sidebar .nav-link .nav-link-content {
    display: flex;
    align-items: center;
}

#sidebar .nav-link i.menu-icon {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    transition: color 0.2s ease;
}

#sidebar .nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    color: #FFFFFF;
    background: var(--pos-primary);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

#sidebar .sub-menu {
    list-style: none;
    padding-left: 2.2rem;
    margin: 0.2rem 0;
}

#sidebar .sub-menu .sub-nav-link {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: #FCA5A5;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#sidebar .sub-menu .sub-nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

#sidebar .sub-menu .sub-nav-link.active {
    color: #F59E0B;
    font-weight: 700;
}

#sidebar .sub-menu .sub-nav-link::before {
    content: "•";
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 0;
}

#content-wrapper {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.75rem !important;
}

.top-navbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pos-border);
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.currency-pill {
    background: #FEE2E2;
    border-radius: 30px;
    padding: 0.35rem 0.85rem;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.card-custom {
    background: var(--pos-card-bg);
    border-radius: var(--pos-radius);
    border: 1px solid var(--pos-border);
    box-shadow: var(--pos-shadow);
    transition: all 0.25s ease;
    margin-bottom: 1.5rem;
    width: 100%;
}

.card-custom:hover {
    box-shadow: var(--pos-shadow-hover);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.table-custom {
    vertical-align: middle;
    width: 100%;
}
.table-custom th {
    background-color: #FEE2E2;
    color: #991B1B;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--pos-border);
    padding: 0.85rem 0.85rem;
    white-space: nowrap;
}
.table-custom td {
    padding: 0.85rem 0.85rem;
    color: #1E293B;
    font-size: 0.88rem;
    border-bottom: 1px solid #FEF2F2;
    white-space: nowrap;
}

footer.footer {
    width: 100%;
    margin-top: auto;
    padding: 1rem 1.75rem;
}

@media (min-width: 992px) {
    #sidebar.toggled {
        margin-left: -280px;
    }
}

@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.25);
    }
    #sidebar.toggled {
        transform: translateX(0);
    }
    .top-navbar {
        padding: 0 1rem;
        height: 64px;
    }
    main.container-fluid {
        padding: 1rem !important;
    }
}
