/* ==========================================================================
   MADINA CHARITY FOOD - ADMIN & POS SYSTEM STYLESHEET
   Matches reference POS layout & modern dashboard aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --admin-primary: #0c3d2e;
    --admin-primary-dark: #07261c;
    --admin-accent: #ea580c;      /* Orange for POS action buttons */
    --admin-accent-hover: #c2410c;
    --admin-gold: #d4af37;
    --admin-bg: #f8fafc;
    --admin-sidebar-bg: #07261c;
    --admin-sidebar-text: #cbd5e1;
    --admin-border: #e2e8f0;
    --admin-card: #ffffff;
    --admin-dark: #0f172a;
    --admin-muted: #64748b;
    --admin-radius: 12px;
    --admin-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------------------------------
   Admin Dashboard Layout (Sidebar + Main Content)
   -------------------------------------------------------------------------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar-bg);
    color: var(--admin-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--admin-primary);
    border: 1px solid var(--admin-gold);
    color: var(--admin-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.sidebar-brand-text h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}
.sidebar-brand-text span {
    font-size: 0.75rem;
    color: var(--admin-gold);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    flex: 1;
}
.menu-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #64748b;
    padding: 10px 14px 4px;
    font-weight: 800;
    letter-spacing: 0.8px;
}
.sidebar-menu li {
    margin-bottom: 4px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.sidebar-menu a i {
    width: 20px;
    font-size: 1.05rem;
    color: #94a3b8;
    text-align: center;
}
.sidebar-menu a:hover {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
}
.sidebar-menu a:hover i {
    color: var(--admin-gold);
}
.sidebar-menu a.active {
    background: linear-gradient(90deg, var(--admin-primary), #11533e);
    color: #ffffff;
    border-left: 4px solid var(--admin-gold);
}
.sidebar-menu a.active i {
    color: var(--admin-gold);
}
.sidebar-badge {
    margin-left: auto;
    background: var(--admin-accent);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--admin-gold);
    color: var(--admin-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}
.admin-topbar {
    background: #ffffff;
    height: 70px;
    border-bottom: 1px solid var(--admin-border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--admin-dark);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-pos-shortcut {
    background: var(--admin-accent);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}
.btn-pos-shortcut:hover {
    background: var(--admin-accent-hover);
}

.admin-content {
    padding: 30px;
}

/* KPI / Metric Cards Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.metric-card {
    background: #ffffff;
    border-radius: var(--admin-radius);
    padding: 22px;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}
.metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.metric-info h4 {
    font-size: 0.85rem;
    color: var(--admin-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.metric-info .metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--admin-dark);
}
.icon-green { background: #dcfce7; color: #15803d; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-gold { background: #fef9c3; color: #ca8a04; }

/* Admin Panels & Cards */
.admin-card {
    background: #ffffff;
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}
.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--admin-dark);
}
.admin-card-body {
    padding: 24px;
}

/* ==========================================================================
   COLORFUL & STYLISH FORM FIELDS DESIGN SYSTEM
   ========================================================================== */

/* Form Group Container */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

/* Stylish Form Label */
.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.form-label-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-label-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.form-label-icon.emerald { background: #dcfce7; color: #15803d; }
.form-label-icon.blue    { background: #e0f2fe; color: #0284c7; }
.form-label-icon.orange  { background: #ffedd5; color: #ea580c; }
.form-label-icon.gold    { background: #fef9c3; color: #b45309; }
.form-label-icon.purple  { background: #f3e8ff; color: #7e22ce; }
.form-label-icon.red     { background: #fee2e2; color: #dc2626; }

/* Micro Badges inside labels */
.badge-req {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-opt {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.badge-seo-tag {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800;
}

/* Core Form Control (Input, Select, Textarea) */
.form-control {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    background: #ffffff;
    border: 1.8px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.form-control:hover {
    border-color: #94a3b8;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: #0c3d2e;
    box-shadow: 0 0 0 4px rgba(12, 61, 46, 0.15), 0 4px 14px rgba(12, 61, 46, 0.08);
    transform: translateY(-1px);
}

/* Textarea Enhancements */
textarea.form-control {
    min-height: 90px;
    line-height: 1.6;
    resize: vertical;
}

/* Custom Styled Select with Modern SVG Arrow */
select.form-control {
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230c3d2e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 46px;
    cursor: pointer;
    font-weight: 600;
}
select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18), 0 4px 14px rgba(234, 88, 12, 0.08);
}

/* Arabic / RTL Input Specialty Styling */
.form-control-arabic,
.input-arabic {
    font-family: 'Amiri', serif !important;
    font-size: 1.12rem !important;
    direction: rtl;
    text-align: right;
    background: #fafffc;
    border-color: #a7f3d0;
    color: #064e3b;
    border-right: 4px solid #10b981;
}
.form-control-arabic:focus,
.input-arabic:focus {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 4px 14px rgba(16, 185, 129, 0.1);
}

/* Stylish Input Groups with Icon Addons */
.input-group-stylish {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-addon-icon {
    position: absolute;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
    transition: all 0.2s;
}
.input-group-stylish .form-control {
    padding-left: 54px;
}
.input-group-stylish:focus-within .input-addon-icon {
    transform: scale(1.1);
}

/* Color Addon Themes */
.addon-green   { background: #dcfce7; color: #16a34a; }
.addon-blue    { background: #e0f2fe; color: #0284c7; }
.addon-orange  { background: #ffedd5; color: #ea580c; }
.addon-gold    { background: #fef9c3; color: #b45309; }
.addon-purple  { background: #f3e8ff; color: #7e22ce; }
.addon-emerald { background: #ecfdf5; color: #059669; }
.addon-red     { background: #fee2e2; color: #dc2626; }

/* Focus Color Glow Variations */
.input-glow-emerald:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 4px 14px rgba(16, 185, 129, 0.1);
}
.input-glow-blue:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 4px 14px rgba(37, 99, 235, 0.1);
}
.input-glow-orange:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2), 0 4px 14px rgba(234, 88, 12, 0.1);
}
.input-glow-purple:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2), 0 4px 14px rgba(124, 58, 237, 0.1);
}

/* Colorful Section Form Cards */
.form-section-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}
.form-section-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card-border-emerald { border-top: 4px solid #10b981; }
.card-border-blue    { border-top: 4px solid #0284c7; }
.card-border-orange  { border-top: 4px solid #ea580c; }
.card-border-gold    { border-top: 4px solid #f59e0b; }
.card-border-purple  { border-top: 4px solid #8b5cf6; }

.form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.form-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 3px;
}

/* Stylish Form Hint Text */
.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}
.form-hint i {
    font-size: 11px;
    color: #94a3b8;
}

/* Radiant Submit Button */
.btn-submit-radiant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-submit-radiant:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.45);
    transform: translateY(-2px);
}
.btn-submit-radiant:active {
    transform: translateY(0);
}


/* Data Tables */
.table-responsive {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.admin-table th {
    background: #f8fafc;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: var(--admin-muted);
    border-bottom: 1px solid var(--admin-border);
}
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}
.admin-table tr:hover td {
    background-color: #fbfdff;
}

/* Action Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
}
.btn-action-view { background: #e0f2fe; color: #0369a1; }
.btn-action-view:hover { background: #bae6fd; }
.btn-action-edit { background: #fef3c7; color: #92400e; }
.btn-action-edit:hover { background: #fde68a; }
.btn-action-del { background: #fee2e2; color: #b91c1c; }
.btn-action-del:hover { background: #fecaca; }

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    color: var(--admin-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
}

/* --------------------------------------------------------------------------
   RESTAURANT POINT OF SALE (POS) SYSTEM STYLES
   (Directly matches the user's reference screenshot!)
   -------------------------------------------------------------------------- */
.pos-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f1f5f9;
    overflow: hidden;
}

/* POS Top Navbar */
.pos-navbar {
    background: #1e293b;
    height: 60px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    border-bottom: 2px solid var(--admin-accent);
}
.pos-nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}
.pos-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}
.pos-brand span {
    color: var(--admin-accent);
}
.pos-nav-links {
    display: flex;
    gap: 16px;
    list-style: none;
}
.pos-nav-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.pos-nav-links a:hover, .pos-nav-links a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}
.pos-nav-links a.active {
    background: var(--admin-accent);
    color: #ffffff;
}
.pos-nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* POS Main Split Area */
.pos-main {
    display: grid;
    grid-template-columns: 380px 1fr;
    flex: 1;
    overflow: hidden;
}

/* Left Column: POS Order Cart */
.pos-order-panel {
    background: #ffffff;
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Dine-In / Takeaway / Delivery Switcher */
.pos-order-types {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--admin-border);
}
.pos-type-btn {
    border: 1px solid var(--admin-border);
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--admin-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.pos-type-btn:hover {
    border-color: var(--admin-accent);
    color: var(--admin-accent);
}
.pos-type-btn.active {
    background: var(--admin-accent);
    color: #ffffff;
    border-color: var(--admin-accent);
}

/* Table Selector Bar */
.pos-table-selector {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--admin-border);
}
.pos-table-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pos-table-icon {
    width: 36px;
    height: 36px;
    background: #fff7ed;
    color: var(--admin-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.pos-table-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-dark);
}
.pos-table-text span {
    font-size: 0.78rem;
    color: var(--admin-muted);
}
.pos-table-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
}

/* Order Item List in Cart */
.pos-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.pos-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.pos-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}
.pos-item-details {
    flex: 1;
}
.pos-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin-bottom: 3px;
}
.pos-item-calc {
    font-size: 0.82rem;
    color: var(--admin-muted);
}
.pos-item-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.pos-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid var(--admin-border);
    background: #f8fafc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.pos-qty-btn:hover { background: #e2e8f0; }
.pos-item-price-col {
    text-align: right;
}
.pos-item-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-dark);
}
.pos-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

/* Cart Calculation Summary */
.pos-order-summary {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid var(--admin-border);
}
.pos-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--admin-muted);
    margin-bottom: 6px;
}
.pos-summary-row.total-row {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--admin-dark);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--admin-border);
}

/* POS Action Buttons */
.pos-actions-grid {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid var(--admin-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.btn-pos-process {
    grid-column: span 2;
    background: var(--admin-accent);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    transition: all 0.2s;
}
.btn-pos-process:hover { background: var(--admin-accent-hover); }

.btn-pos-secondary {
    background: #ffffff;
    border: 1.5px solid var(--admin-border);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--admin-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-pos-secondary:hover {
    border-color: var(--admin-dark);
    background: #f1f5f9;
}

/* Right Column: POS Food Products Grid */
.pos-products-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 20px 24px;
}
.pos-search-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}
.pos-search-input-wrap {
    flex: 1;
    position: relative;
}
.pos-search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.pos-search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.95rem;
    outline: none;
}
.pos-category-filter-select {
    padding: 10px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
}

/* Category Pills Bar in POS */
.pos-category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.pos-cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 10px 8px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--admin-dark);
    white-space: nowrap;
}
.pos-cat-pill i {
    font-size: 20px;
    color: var(--admin-accent);
    margin-bottom: 4px;
}
.pos-cat-pill.active {
    background: var(--admin-accent);
    color: #ffffff;
    border-color: var(--admin-accent);
}
.pos-cat-pill.active i {
    color: #ffffff;
}

/* Food Grid in POS */
.pos-food-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding-right: 6px;
}
.pos-food-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.pos-food-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.pos-food-img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    background: #f8fafc;
}
.pos-food-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pos-food-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}
.pos-food-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--admin-primary);
    margin-top: auto;
    margin-bottom: 8px;
}
.btn-pos-add {
    background: var(--admin-accent);
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-pos-add:hover {
    background: var(--admin-accent-hover);
}

/* Modal Window Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #ffffff;
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    padding: 18px 24px;
    background: var(--admin-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}
.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Printable Bill Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-bill, #printable-bill * {
        visibility: visible;
    }
    #printable-bill {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 15px;
    }
}

/* ==========================================================================
   ENHANCED MODERN COMPONENTS (SETTINGS, CATEGORIES, ORDERS, PRODUCTS)
   ========================================================================== */

/* Modern Admin Tabs */
.admin-tabs-container {
    background: #ffffff;
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    overflow: hidden;
}
.admin-tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--admin-border);
    padding: 6px 12px 0;
    gap: 8px;
    overflow-x: auto;
}
.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-muted);
    border: none;
    background: transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.admin-tab-btn:hover {
    color: var(--admin-primary);
    background: rgba(12, 61, 46, 0.04);
}
.admin-tab-btn.active {
    color: var(--admin-primary);
    background: #ffffff;
    border-bottom: 3px solid var(--admin-primary);
    font-weight: 700;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.03);
}
.admin-tab-btn .tab-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 12px;
}
.admin-tab-btn.active .tab-badge {
    background: rgba(12, 61, 46, 0.12);
    color: var(--admin-primary);
}
.admin-tab-pane {
    display: none;
    padding: 28px;
    animation: fadeIn 0.25s ease-out;
}
.admin-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Google SERP Snippet Preview Box */
.serp-preview-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
}
.serp-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--admin-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.serp-card {
    background: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 6px rgba(32,33,36,0.1);
    max-width: 650px;
}
.serp-site-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.serp-favicon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.serp-domain {
    font-size: 0.85rem;
    color: #202124;
    font-weight: 500;
}
.serp-path {
    font-size: 0.8rem;
    color: #4d5156;
}
.serp-title {
    font-size: 1.25rem;
    color: #1a0dab;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    word-break: break-word;
}
.serp-title:hover {
    text-decoration: underline;
}
.serp-description {
    font-size: 0.88rem;
    color: #4d5156;
    line-height: 1.45;
    font-family: Arial, sans-serif;
    word-break: break-word;
}
.serp-char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    margin-top: 4px;
    color: var(--admin-muted);
}
.serp-char-counter.optimal {
    color: #16a34a;
    font-weight: 600;
}
.serp-char-counter.warning {
    color: #ea580c;
    font-weight: 600;
}

/* Visual Icon Picker Grid */
.icon-picker-tray {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 12px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
}
.icon-picker-btn {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
}
.icon-picker-btn i {
    font-size: 18px;
}
.icon-picker-btn span {
    font-size: 0.68rem;
    color: var(--admin-muted);
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.icon-picker-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--admin-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.icon-picker-btn.active {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(12, 61, 46, 0.25);
}
.icon-picker-btn.active span {
    color: #ffffff;
}

/* Category Live Preview Box */
.cat-live-preview {
    background: #f8fafc;
    border: 1px dashed var(--admin-border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.cat-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cat-preview-icon {
    width: 38px;
    height: 38px;
    background: rgba(12, 61, 46, 0.08);
    color: var(--admin-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.cat-preview-text {
    text-align: left;
}
.cat-preview-title {
    font-weight: 700;
    color: var(--admin-dark);
    font-size: 0.95rem;
}
.cat-preview-ar {
    font-family: 'Amiri', serif;
    font-size: 0.85rem;
    color: var(--admin-primary);
}

/* Order Workflow Progress Stepper */
.order-workflow-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 22px 30px;
    margin-bottom: 25px;
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}
.order-workflow-stepper::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}
.workflow-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.workflow-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}
.workflow-step.completed .workflow-step-circle {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}
.workflow-step.active .workflow-step-circle {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(12, 61, 46, 0.2);
    animation: pulseCircle 2s infinite;
}
@keyframes pulseCircle {
    0% { box-shadow: 0 0 0 0 rgba(12, 61, 46, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(12, 61, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(12, 61, 46, 0); }
}
.workflow-step-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}
.workflow-step.active .workflow-step-title {
    color: var(--admin-primary);
    font-weight: 700;
}
.workflow-step.completed .workflow-step-title {
    color: #16a34a;
}
.workflow-step-time {
    font-size: 0.72rem;
    color: var(--admin-muted);
}

/* Order Header Toolbar */
.order-header-bar {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 20px 24px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--admin-shadow);
}
.order-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-dark);
    cursor: pointer;
    border: 1px dashed #cbd5e1;
    transition: all 0.2s;
}
.order-copy-pill:hover {
    background: #e2e8f0;
}

/* Receipt Inspector Interactive Viewer */
.receipt-inspector-box {
    position: relative;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 12px;
}
.receipt-controls-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 25px;
    padding: 6px 14px;
    display: flex;
    gap: 10px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.receipt-ctrl-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.receipt-ctrl-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--admin-gold);
}

/* Product Creation Studio Styles */
.product-studio-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    align-items: start;
}
@media (max-width: 1024px) {
    .product-studio-container {
        grid-template-columns: 1fr;
    }
}
.product-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.product-dropzone:hover {
    border-color: var(--admin-primary);
    background: #f0fdf4;
}
.product-dropzone i {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.dropzone-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Storefront Card Live Preview Mockup */
.storefront-card-mockup {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.mockup-img-wrap {
    position: relative;
    height: 180px;
    background: #e2e8f0;
    overflow: hidden;
}
.mockup-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mockup-charity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #166534;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.mockup-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}
.mockup-body {
    padding: 16px;
}
.mockup-cat {
    font-size: 0.75rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}
.mockup-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin-bottom: 2px;
}
.mockup-ar {
    font-family: 'Amiri', serif;
    font-size: 0.95rem;
    color: var(--admin-primary);
    margin-bottom: 8px;
}
.mockup-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}
.mockup-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--admin-primary);
}
.mockup-original-price {
    font-size: 0.88rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Feature Switch Toggles */
.feature-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--admin-border);
    margin-bottom: 12px;
    transition: all 0.2s;
}
.feature-switch-card.charity {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.feature-switch-card.popular {
    background: #fffbeb;
    border-color: #fde68a;
}
.feature-switch-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.feature-switch-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.charity .feature-switch-icon {
    background: #dcfce7;
    color: #15803d;
}
.popular .feature-switch-icon {
    background: #fef3c7;
    color: #b45309;
}
.switch-input {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.switch-input input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch-input input:checked + .switch-slider {
    background-color: #16a34a;
}
.switch-input input:checked + .switch-slider:before {
    transform: translateX(22px);
}

/* ==========================================================================
   ADMIN PORTAL & POS MOBILE RESPONSIVE SYSTEM
   Native Mobile App Feel for Any Phone Screen (320px to 1024px)
   ========================================================================== */

/* Mobile Sidebar Toggle Button - Default Hidden on Desktop */
.admin-mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    color: var(--admin-dark);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.admin-mobile-toggle:hover {
    background: #f1f5f9;
    color: var(--admin-primary);
}

/* Dark Backdrop Overlay */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.admin-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

body.sidebar-locked {
    overflow: hidden;
}

/* Reusable Admin Split & Form Grids */
.admin-grid-split {
    display: grid;
    grid-template-columns: 1.15fr 1.85fr;
    gap: 28px;
    align-items: start;
}
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    align-items: start;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-grid-1-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

/* POS Desktop default */
body.pos-body {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Tablets & Mobile Screens (<= 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Show Hamburger Button */
    .admin-mobile-toggle {
        display: flex;
    }

    /* Off-Canvas Drawer Navigation */
    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -290px;
        width: 280px;
        z-index: 1050;
        box-shadow: none;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .admin-sidebar.open {
        left: 0;
        box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5);
    }

    /* Main Container & Topbar */
    .admin-topbar {
        padding: 0 16px;
        height: 60px;
    }
    .topbar-title {
        font-size: 1.1rem;
    }
    .btn-pos-shortcut {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
    .btn-pos-shortcut .btn-pos-text {
        display: none; /* Icon-only button on mobile to save space */
    }

    .admin-content {
        padding: 16px 14px;
    }

    /* Grids collapse to single column */
    .admin-grid-split,
    .order-detail-grid,
    .product-studio-container,
    div[style*="grid-template-columns: 1.15fr 1.85fr"],
    div[style*="grid-template-columns: 1.2fr 1.8fr"],
    div[style*="grid-template-columns: 1.6fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* POS Mobile Adaptation */
    body.pos-body {
        overflow-y: auto !important;
    }
    .pos-container {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
    }
    .pos-navbar {
        height: auto;
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .pos-nav-left {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .pos-nav-links {
        display: none; /* Hide internal links to keep header clean */
    }
    .pos-nav-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .pos-main {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    .pos-products-panel {
        order: 1;
        overflow: visible;
        padding: 16px 12px;
    }
    .pos-order-panel {
        order: 2;
        border-right: none;
        border-top: 3px solid var(--admin-accent);
        height: auto;
        min-height: 400px;
    }
    .pos-items-list {
        max-height: 350px;
    }
}

/* --------------------------------------------------------------------------
   Smartphones & Handhelds (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Form 2-col inline grids collapse */
    .form-grid-2,
    .form-grid-1-2,
    .form-section-card div[style*="grid-template-columns: 1fr 1fr"],
    .form-section-card div[style*="grid-template-columns: 1.2fr 1fr"],
    .admin-card-body div[style*="grid-template-columns: 1.2fr 1fr"],
    .admin-card-body div[style*="grid-template-columns: 1fr 1fr"],
    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Stepper Mobile */
    .order-workflow-stepper {
        padding: 16px 12px !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .workflow-step {
        min-width: 85px !important;
    }
    .workflow-step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
    .workflow-step-title {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }
    .workflow-step-time {
        font-size: 0.65rem !important;
    }

    /* Filter tabs swipable on mobile */
    .filter-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
        scrollbar-width: none !important;
    }
    .filter-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .filter-tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Dashboard KPI 2x2 grid */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    .metric-card {
        padding: 14px !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .metric-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }
    .metric-info .metric-value {
        font-size: 1.25rem !important;
    }
    .metric-info h4 {
        font-size: 0.72rem !important;
    }

    /* POS Product Grid 2-col on mobile */
    .pos-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .pos-food-card {
        padding: 10px !important;
    }
    .pos-card-img {
        height: 95px !important;
    }
    .pos-card-name {
        font-size: 0.82rem !important;
    }
    .pos-card-price {
        font-size: 0.92rem !important;
    }

    /* Admin Action Buttons in Tables */
    .admin-table td {
        padding: 12px 10px !important;
        font-size: 0.85rem !important;
    }
    .admin-table th {
        padding: 10px 10px !important;
        font-size: 0.78rem !important;
    }

    /* Settings Navigation Tabs swipable */
    .admin-tabs-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
        scrollbar-width: none !important;
    }
    .admin-tabs-nav::-webkit-scrollbar {
        display: none !important;
    }
    .admin-tab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
    }
    .admin-tab-pane {
        padding: 16px 12px !important;
    }

    /* Form section header */
    .form-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .form-section-card {
        padding: 16px 14px !important;
    }
    .btn-submit-radiant {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
    }
}

/* Extra Small Phones (< 420px) */
@media (max-width: 420px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .metric-card {
        padding: 10px !important;
    }
    .metric-info .metric-value {
        font-size: 1.1rem !important;
    }
    .admin-content {
        padding: 12px 8px !important;
    }
    .admin-topbar {
        padding: 0 12px !important;
    }
    .topbar-title {
        font-size: 0.98rem !important;
    }
}

/* ==========================================================================
   Refined Admin Mobile Typography & Boldness Reduction Across All Admin Pages
   ========================================================================== */
@media (max-width: 768px) {
    strong, b, [style*="font-weight: 800"], [style*="font-weight: 700"] {
        font-weight: 600 !important;
    }
    h1, .topbar-title {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
    }
    h2, h3, .admin-card-title {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }
    h4, h5, h6 {
        font-size: 0.82rem !important;
        font-weight: 600 !important;
    }
    .admin-table th {
        font-size: 0.74rem !important;
        padding: 8px 6px !important;
    }
    .admin-table td {
        font-size: 0.78rem !important;
        padding: 8px 6px !important;
    }
    .btn-sm {
        font-size: 0.74rem !important;
        padding: 5px 8px !important;
    }
    .filter-tab {
        font-size: 0.76rem !important;
        padding: 6px 10px !important;
    }
    .badge-status {
        font-size: 0.70rem !important;
        padding: 2px 6px !important;
    }
}

/* Settings Toggle Switch Slider */
.video-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}
.video-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
input:checked + .video-switch-slider {
    background-color: #10b981;
}
input:checked + .video-switch-slider:before {
    transform: translateX(22px);
}



