/* ========================================
   CRISPY CHICKEN ADMIN THEME
   Brand Colors: #FF6B35 (Primary Orange)
   ======================================== */

:root {
    /* Brand Colors - Matches Mobile App */
    --primary-orange: #FF6B35;
    --primary-orange-dark: #E55A2B;
    --primary-orange-light: #FF8C5A;
    --secondary-gold: #FFD700;
    --accent-green: #2ECC71;

    /* Neutrals */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;

    /* Status */
    --success-green: #27AE60;
    --error-red: #E74C3C;
    --warning-yellow: #F39C12;
    --info-blue: #3498DB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ========================================
   ADMIN WRAPPER
   ======================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--gradient-dark);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

/* Brand */
.sidebar-brand {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-brand .brand-text span {
    color: var(--primary-orange);
}

.sidebar-brand .brand-sub {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.sidebar-nav {
    padding: 16px 0;
}

.sidebar-nav .nav-section {
    padding: 8px 20px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav .nav-item {
    position: relative;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

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

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 107, 53, 0.15);
    border-left-color: var(--primary-orange);
}

.sidebar-nav .nav-link.active .nav-icon {
    color: var(--primary-orange);
}

.sidebar-nav .nav-link .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.sidebar-nav .nav-link .nav-badge {
    margin-left: auto;
    background: var(--primary-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Submenu */
.sidebar-nav .has-submenu > .nav-link {
    cursor: pointer;
}

.sidebar-nav .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav .submenu.show {
    max-height: 600px;
}

.sidebar-nav .submenu .nav-link {
    padding: 8px 20px 8px 56px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav .submenu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav .submenu .nav-link.active {
    color: #fff;
    background: rgba(255, 107, 53, 0.1);
    border-left-color: var(--primary-orange);
}

.sidebar-nav .submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.sidebar-nav .submenu-arrow.open {
    transform: rotate(90deg);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   TOP BAR
   ======================================== */
.topbar {
    background: var(--bg-white);
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 280px;
    padding: 8px 16px 8px 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-light);
    transition: all 0.3s;
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    background: #fff;
}

.topbar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.topbar-right .btn-icon:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
}

.topbar-right .btn-icon .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--error-red);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.user-profile:hover {
    background: var(--bg-light);
}

.user-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.user-profile .user-info {
    line-height: 1.2;
}

.user-profile .user-info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-profile .user-info .role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   PAGE CONTENT
   ======================================== */
.page-content {
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    background: none;
    padding: 0;
    margin: 4px 0 0;
}

.page-header .breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   STATS CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-card .stat-icon.orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary-orange);
}

.stat-card .stat-icon.green {
    background: rgba(46, 204, 113, 0.12);
    color: var(--accent-green);
}

.stat-card .stat-icon.blue {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info-blue);
}

.stat-card .stat-icon.gold {
    background: rgba(255, 215, 0, 0.12);
    color: var(--secondary-gold);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-orange {
    background: var(--primary-orange);
    color: #fff;
    border: none;
}

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

.btn-outline-orange {
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    background: transparent;
}

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

.btn-zanzibar {
    background: var(--primary-orange);
    color: #fff;
    border: none;
}

.btn-zanzibar:hover {
    background: var(--primary-orange-dark);
    color: #fff;
}

/* ========================================
   TABLE
   ======================================== */
.table-zanzibar {
    --bs-table-hover-bg: rgba(255, 107, 53, 0.04);
}

.table-zanzibar thead th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    padding: 12px 16px;
}

.table-zanzibar tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table-zanzibar tbody tr:hover {
    background: rgba(255, 107, 53, 0.02);
}

/* ========================================
   BADGES
   ======================================== */
.badge-soft-orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary-orange);
}

.badge-soft-green {
    background: rgba(46, 204, 113, 0.12);
    color: var(--accent-green);
}

.badge-soft-red {
    background: rgba(231, 76, 60, 0.12);
    color: var(--error-red);
}

.badge-soft-blue {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info-blue);
}

.badge-soft-gold {
    background: rgba(255, 215, 0, 0.12);
    color: #B7950B;
}

/* ========================================
   FOOTER
   ======================================== */
.footer-note {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-orange);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 16px;
}

.auth-card .auth-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.auth-card .auth-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 4px 0 0;
}

.auth-card .form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    transition: all 0.3s;
}

.auth-card .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.auth-card .form-label {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-card .btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    transition: all 0.3s;
}

.auth-card .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.auth-card .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1045;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar-toggle {
        display: block;
    }

    .topbar-search input {
        width: 160px;
    }

    .user-profile .user-info {
        display: none;
    }
}

@media (max-width: 576px) {
    .topbar {
        padding: 0 12px;
    }

    .topbar-search input {
        width: 120px;
    }

    .topbar-right .btn-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .page-content {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .auth-card {
        padding: 32px 20px;
        margin: 12px;
    }
}


/* ========================================
   AVATAR CIRCLE
   ======================================== */
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

/* Badge Colors */
.bg-success-subtle {
    background-color: rgba(39, 174, 96, 0.12);
}
.bg-warning-subtle {
    background-color: rgba(243, 156, 18, 0.12);
}
.bg-danger-subtle {
    background-color: rgba(231, 76, 60, 0.12);
}
.bg-info-subtle {
    background-color: rgba(52, 152, 219, 0.12);
}
.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.12);
}

.text-success {
    color: #27AE60 !important;
}
.text-warning {
    color: #F39C12 !important;
}
.text-danger {
    color: #E74C3C !important;
}
.text-info {
    color: #3498DB !important;
}
.text-secondary {
    color: #6C757D !important;
}


/* ========================================
   PROFESSIONAL UI STYLES
   ======================================== */

/* Avatar Circle */
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.avatar-md {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.avatar-lg {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

/* Badge Subtle Colors */
.bg-success-subtle {
    background-color: rgba(39, 174, 96, 0.12) !important;
}
.bg-warning-subtle {
    background-color: rgba(243, 156, 18, 0.12) !important;
}
.bg-danger-subtle {
    background-color: rgba(231, 76, 60, 0.12) !important;
}
.bg-info-subtle {
    background-color: rgba(52, 152, 219, 0.12) !important;
}
.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.12) !important;
}
.bg-primary-subtle {
    background-color: rgba(255, 107, 53, 0.12) !important;
}

.text-success {
    color: #27AE60 !important;
}
.text-warning {
    color: #F39C12 !important;
}
.text-danger {
    color: #E74C3C !important;
}
.text-info {
    color: #3498DB !important;
}
.text-secondary {
    color: #6C757D !important;
}
.text-primary {
    color: #FF6B35 !important;
}

/* Table Improvements */
.table > :not(caption) > * > * {
    padding: 12px 16px;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.03);
}

/* Input Group Fix */
.input-group .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-group .input-group-text {
    background-color: #fff;
}

/* Form Select Fix */
.form-select:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
}

.pagination .page-link {
    color: #1A1A2E;
    border-radius: 8px;
    margin: 0 2px;
    border: none;
}

.pagination .page-link:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

/* Modal Backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Pre/Code Blocks */
pre {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Stats Cards */
.stat-mini {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    min-width: 80px;
}

.stat-mini .number {
    font-weight: 700;
    font-size: 18px;
    color: #1A1A2E;
}

.stat-mini .label {
    font-size: 10px;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge with Icon */
.badge i {
    font-size: 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 13px;
    }

    .avatar-sm {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .stat-mini {
        padding: 4px 12px;
        min-width: 60px;
    }

    .stat-mini .number {
        font-size: 14px;
    }
}


/* ========================================
   POS LAYOUT
   ======================================== */
.pos-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f2f5;
}

/* POS Header */
.pos-header {
    background: #fff;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.pos-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pos-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.pos-brand .brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.pos-brand .brand-text span {
    color: var(--primary-orange);
}

.pos-brand .brand-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pos-header-center {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pos-branch-info,
.pos-staff-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 8px;
}

.pos-branch-info i,
.pos-staff-info i {
    color: var(--primary-orange);
}

.pos-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* POS Main */
.pos-main {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

/* POS Grid */
.pos-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    height: calc(100vh - 130px);
}

/* POS Products */
.pos-products {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pos-products-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pos-products-header .search-box {
    position: relative;
}

.pos-products-header .search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-light);
    transition: all 0.3s;
}

.pos-products-header .search-box input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    background: #fff;
}

.pos-products-header .search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.pos-products-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-content: start;
}

/* POS Product Card */
.pos-product-card {
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-product-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.pos-product-card .product-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: var(--primary-orange);
    overflow: hidden;
}

.pos-product-card .product-icon img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.pos-product-card .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pos-product-card .product-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-orange);
}

/* POS Cart */
.pos-cart {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-cart-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.pos-cart-header .cart-count {
    background: var(--primary-orange);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.pos-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.pos-cart-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

.pos-cart-item .item-info {
    flex: 1;
}

.pos-cart-item .item-name {
    font-size: 14px;
    font-weight: 500;
}

.pos-cart-item .item-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.pos-cart-item .item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-cart-item .item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-cart-item .item-qty button:hover {
    background: var(--primary-orange);
    color: #fff;
}

.pos-cart-item .item-qty span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.pos-cart-item .item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.pos-cart-item .item-remove:hover {
    color: #a71d2a;
}

/* POS Cart Footer */
.pos-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.pos-cart-footer .cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pos-cart-footer .cart-total .total-amount {
    color: var(--primary-orange);
}

.pos-cart-footer .btn-checkout {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.pos-cart-footer .btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.pos-cart-footer .btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* POS Empty State */
.pos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.pos-empty i {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .pos-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pos-products {
        max-height: 500px;
    }

    .pos-cart {
        max-height: 500px;
    }

    .pos-header-center {
        display: none;
    }
}

@media (max-width: 576px) {
    .pos-header {
        padding: 0 12px;
    }

    .pos-brand .brand-text {
        font-size: 15px;
    }

    .pos-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        padding: 12px;
    }

    .pos-cart {
        max-height: 400px;
    }
}

/* POS Navigation */
.pos-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 10px;
}

.pos-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pos-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.pos-nav-link.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.pos-nav-link i {
    font-size: 16px;
}
