/* ── RestroPro UI – Custom Color Palette ──────────────────────────────── */
/* #81A6C6 (Steel Blue)   → Primary brand, navbar, buttons                */
/* #AACDDC (Soft Blue)    → Accents, badges, info highlights              */
/* #F3E3D0 (Warm Cream)   → Page background, light cards                  */
/* #D2C4B4 (Taupe)        → Borders, muted text, sidebar                  */

:root {
    --brand-primary: #81A6C6;
    --brand-accent: #AACDDC;
    --brand-cream: #F3E3D0;
    --brand-taupe: #D2C4B4;
    --brand-dark: #4A6F8E;
    --brand-darker: #3A5A73;
    --brand-light: #E8F0F6;
    --brand-white: #FFFFFF;
    --text-dark: #2D3748;
    --text-body: #4A5568;
    --text-muted: #8A7A6A;
    --sidebar-width: 240px;
    --topbar-height: 58px;
    --radius: .55rem;
}

body {
    background-color: var(--brand-cream) !important;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
    background-color: var(--brand-darker) !important;
}

@media (min-width: 992px) {
    .sidebar {
        min-height: calc(100vh - 56px);
        width: 230px;
        flex-shrink: 0;
    }
}

/* Mobile offcanvas variant: full slide-in panel */
@media (max-width: 991.98px) {
    .sidebar.offcanvas-lg {
        width: 260px;
        max-width: 80vw;
    }
    .sidebar .offcanvas-body {
        overflow-y: auto;
    }
}

.sidebar .nav-link {
    padding: 0.55rem 0.85rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991.98px) {
    .sidebar .nav-link {
        padding: 0.7rem 0.85rem;
        font-size: 0.95rem;
    }
}

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

.sidebar .nav-link.active {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

.sidebar .section-label {
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-taupe);
    padding: 0 .5rem;
    font-weight: 600;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

.btn-accent {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-darker);
}

.btn-accent:hover {
    background-color: #90bdd0;
    border-color: #90bdd0;
    color: #fff;
}

.btn-outline-accent {
    border-color: var(--brand-accent);
    color: var(--brand-dark);
}

.btn-outline-accent:hover {
    background-color: var(--brand-accent);
    color: #fff;
}

.btn-taupe {
    background-color: var(--brand-taupe);
    border-color: var(--brand-taupe);
    color: #fff;
}

.btn-taupe:hover {
    background-color: #bfb1a0;
    border-color: #bfb1a0;
    color: #fff;
}

.btn-outline-taupe {
    border-color: var(--brand-taupe);
    color: #8a7a6a;
}

.btn-outline-taupe:hover {
    background-color: var(--brand-taupe);
    color: #fff;
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge-brand {
    background-color: var(--brand-primary);
    color: #fff;
}

.badge-accent {
    background-color: var(--brand-accent);
    color: var(--brand-darker);
}

.badge-taupe {
    background-color: var(--brand-taupe);
    color: #fff;
}

.badge-cream {
    background-color: var(--brand-cream);
    color: var(--brand-darker);
    border: 1px solid var(--brand-taupe);
}

/* ── Text & BG ────────────────────────────────────────────────────────── */
.text-brand {
    color: var(--brand-primary) !important;
}

.text-accent {
    color: var(--brand-accent) !important;
}

.text-taupe {
    color: var(--brand-taupe) !important;
}

.text-brand-dark {
    color: var(--brand-darker) !important;
}

.bg-brand {
    background-color: var(--brand-primary) !important;
}

.bg-accent {
    background-color: var(--brand-accent) !important;
}

.bg-cream {
    background-color: var(--brand-cream) !important;
}

.bg-taupe {
    background-color: var(--brand-taupe) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

.bg-brand-dark {
    background-color: var(--brand-darker) !important;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.thead-brand {
    background-color: var(--brand-darker) !important;
    color: #fff;
}

.thead-brand th {
    background-color: var(--brand-darker) !important;
    color: #fff;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    border-radius: .6rem;
    border-color: rgba(210, 196, 180, .35);
}

.hover-card {
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid rgba(210, 196, 180, .4);
}

.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(129, 166, 198, .18) !important;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(129, 166, 198, .25);
}

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
    border-radius: .5rem;
}

/* ── Login page ────────────────────────────────────────────────────────── */
.login-bg {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
}

/* ── Category tree ─────────────────────────────────────────────────────── */
.cat-border {
    border-left: 3px solid var(--brand-accent) !important;
}

/* ── Order Pad sidebar (Point of Sale) ────────────────────────────────── */
.order-sidebar {
    width: 100%;
}

.order-sidebar-card {
    max-height: none;
}

@media (min-width: 992px) {
    .order-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 1rem;
    }
    .order-sidebar-card {
        max-height: calc(100vh - 6rem);
    }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
.main-content {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .main-content {
        max-width: 100vw;
        overflow-x: auto;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    main h1, main .h1 { font-size: 1.4rem; }
    main h2, main .h2 { font-size: 1.2rem; }
    main h3, main .h3 { font-size: 1.1rem; }
    .table { font-size: 0.85rem; }
    .card-body { padding: 0.85rem; }
}


