/* 
   Benim RestaurantÄ±m - Premium Light Admin TemasÄ±
   TasarÄ±m: GÃ¶z Yormayan, Profesyonel, Renk Uyumlu
*/

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

:root {
    /* --- Premium Renk Paleti (Soft & Professional) --- */

    /* Ana Renkler */
    --primary-color: #5d87ff;
    /* YumuÅŸak Modern Mavi */
    --primary-hover: #4570ea;
    --primary-soft: #ecf2ff;
    /* Ã‡ok aÃ§Ä±k mavi zemin */
    --primary-text: #2a3547;
    /* Koyu Lacivert/Gri (Okunabilirlik iÃ§in) */

    /* NÃ¶tr / Arkaplan Renkleri */
    --bg-body: #fdfdfd;
    /* Neredeyse beyaz */
    --bg-surface: #ffffff;
    /* Kartlar iÃ§in tam beyaz */
    --bg-sidebar: #ffffff;
    --bg-input: #f8f9fa;
    /* Input alanlarÄ± iÃ§in aÃ§Ä±k gri */

    /* Metin Renkleri */
    --text-heading: #2a3547;
    /* BaÅŸlÄ±klar - Koyu */
    --text-body: #5a6a85;
    /* Ä°Ã§erik - YumuÅŸak Gri */
    --text-muted: #7c8fac;
    /* Ä°kincil - AÃ§Ä±k Gri */
    --text-light: #ffffff;

    /* Durum Renkleri (GÃ¶z yormayan Pastel Tonlar) */
    --success: #13deb9;
    --success-bg: #e6fffa;
    --success-text: #0d8a72;

    --warning: #ffae1f;
    --warning-bg: #fef5e5;
    --warning-text: #b57b12;

    --danger: #fa896b;
    --danger-bg: #fdede8;
    --danger-text: #b0543d;

    --info: #539bff;
    --info-bg: #eebf;
    --info-text: #2d5b99;

    /* Ã‡izgiler ve GÃ¶lgeler */
    --border-color: #eef2f6;
    --border-hover: #dfe5ef;

    /* Ã‡ok hafif, modern gÃ¶lgeler (Soft Shadows) */
    --shadow-card: 0px 18px 40px 0px rgba(112, 144, 176, 0.12);
    --shadow-sm: 0px 5px 14px 0px rgba(133, 146, 163, 0.08);
    --shadow-hover: 0px 8px 25px 0px rgba(112, 144, 176, 0.2);

    /* YapÄ±sal */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 99px;

    --sidebar-width: 270px;
    --header-height: 80px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- QR MENU / MODERN POS STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Override Font for POS/Menu if desired, or global */
.modern-font {
    font-family: 'Outfit', sans-serif !important;
}

/* Menu Item Card (Horizontal, Premium) */
.menu-item {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.item-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 5px;
    line-height: 1.3;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.add-btn-icon {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 15px;
    right: 15px;
    box-shadow: 0 4px 10px rgba(93, 135, 255, 0.4);
}

/* --- Temel Ayarlar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Public Sans', sans-serif;
    /* Daha modern ve okunaklÄ± */
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

/* --- Genel Layout --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR (Sol MenÃ¼) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 32px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
}

.sidebar-header i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.6rem;
}

.sidebar-menu {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-heading);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.sidebar-menu li a i {
    width: 25px;
    font-size: 1.3rem;
    margin-right: 12px;
    color: var(--text-body);
    transition: var(--transition);
}

/* Aktif ve Hover DurumlarÄ± */
.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(93, 135, 255, 0.4);
    /* Primary shadow */
}

.sidebar-menu li a:hover i,
.sidebar-menu li.active a i {
    color: #fff;
}

.logout-item {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-item a {
    color: var(--danger) !important;
}

.logout-item a:hover {
    background-color: var(--danger-bg) !important;
    color: var(--danger-text) !important;
    box-shadow: none !important;
}

/* --- MAIN CONTENT (SaÄŸ Ä°Ã§erik) --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: #fdfdfd;
    /* Hafif dokulu */
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.content-wrapper {
    padding: 40px;
    flex: 1;
}

/* KullanÄ±cÄ± & Tarih */
.user-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-display {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px 16px 6px 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.profile-dropdown:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
}

.profile-dropdown img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.profile-dropdown span {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
}

/* --- KART TASARIMLARI (YumuÅŸak, Temiz) --- */
.card,
.stat-card,
.menu-item,
.table-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    /* Border yerine gÃ¶lge kullandÄ±k */
    transition: var(--transition);
    overflow: hidden;
}

.card:hover,
.stat-card:hover,
.menu-item:hover,
.table-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Ä°statistik KartlarÄ± */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Icon ArkaplanlarÄ± (Pastel) */
.bg-primary-soft {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.bg-success-soft {
    background: var(--success-bg);
    color: var(--success-text);
}

.bg-warning-soft {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.bg-danger-soft {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-heading);
}

.stat-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- TABLOLAR (Ferah) --- */
.modern-table-wrapper {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    /* KÃ¶ÅŸeleri koru */
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table th {
    background: #f9f9fc;
    /* Ã‡ok hafif gri header */
    color: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.modern-table td {
    padding: 20px 24px;
    color: var(--text-heading);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    transition: 0.2s;
}

.modern-table tr:hover td {
    background: #fcfcfc;
}

/* --- FORMLAR (Minimalist) --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.form-control,
input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: var(--transition);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
}

/* --- BUTONLAR --- */
button,
.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary,
.btn-save,
.btn-add {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(93, 135, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(93, 135, 255, 0.4);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--bg-input);
    color: var(--text-heading);
    border-color: #dce1e8;
}

/* --- BADGES --- */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

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

    .sidebar.active {
        transform: translateX(0);
    }

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

/* --- POS SYSTEM STYLES (Added Dynamically) --- */

.pos-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: var(--bg-body);
}

/* LEFT SIDE - MENU */
.pos-menu-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-body);
    overflow: hidden;
}

.pos-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    /* Top: 10px, Bottom: 20px to fit shadows/hover */
    margin-bottom: 10px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 12px 25px;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-body);
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.cat-btn:hover {
    transform: translateY(-2px);
}

.cat-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(93, 135, 255, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Increased from 180 to 220 */
    gap: 20px;
    overflow-y: auto;
    padding-bottom: 20px;
    padding-right: 5px;
}

/* RIGHT SIDE - CART */
.pos-cart-area {
    width: 400px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #f8f9fa;
}

.cart-item {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* PRODUCT CARD STYLES (NEW PROFESSIONAL LOOK) */
.pos-product-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-height: 250px;
}

.pos-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.pp-img-container {
    height: 160px;
    width: 100%;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    /* Ensure image doesnt spill */
    flex-shrink: 0;
}

.pp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pos-product-card:hover .pp-img {
    transform: scale(1.05);
}

.pp-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.pp-title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.pp-price {
    margin-top: 5px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

.pp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-product-card:hover .pp-overlay {
    opacity: 1;
}

.ui-state-highlight {
    height: 50px;
    background: #fdfdfd;
    border: 1px dashed var(--primary-color);
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
}

/* --- MOBILE POS RESPONSIVE --- */
/* --- MOBILE POS RESPONSIVE --- */

/* Tablet Landscape & Desktop Small (1024px - 769px) - Keep Horizontal but Compact */
@media (max-width: 1024px) and (min-width: 769px) {
    .pos-cart-area {
        width: 320px;
        /* Narrower cart */
    }

    .pos-product-card {
        min-height: 200px;
        /* Smaller cards */
    }

    .pp-img-container {
        height: 120px;
    }

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

/* Base Mobile & Tablet Portrait (< 768px) - Stack Vertically */
@media (max-width: 768px) {
    .pos-layout {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    .pos-menu-area {
        height: 60%;
        width: 100%;
        padding: 10px;
        order: 1;
    }

    .pos-cart-area {
        height: 40%;
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        order: 2;
        z-index: 50;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        /* Smaller grid for mobile */
        gap: 10px;
        padding-bottom: 50px;
    }

    .pos-product-card {
        min-height: 180px;
    }

    .pp-img-container {
        height: 100px;
    }

    .cat-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* --- RESPONSIVE IMPROVEMENTS (Tablet & Mobile) --- */

/* Tablet (Portrait & Small Laptop): 768px - 1024px */
@media (max-width: 1024px) {

    /* Auto-hide sidebar on narrower screens too, unless large tablet landscape */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

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

    /* Stats Grid: 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pos-product-card {
        min-height: 220px;
    }
}

/* Mobile: < 768px */
@media (max-width: 768px) {

    /* Header Adjustments */
    .topbar {
        padding: 0 20px;
    }

    .user-info {
        gap: 15px;
    }

    .date-display {
        display: none;
        /* Hide date on small screens */
    }

    /* Content Padding */
    .content-wrapper {
        padding: 20px;
    }

    /* Stats Grid: 1 column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Table Scroll */
    .modern-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll */
    }

    .modern-table {
        min-width: 700px;
        /* Force width to trigger scroll */
    }

    /* Modal Adjustments */
    .modal-content {
        width: 95% !important;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Font Sizes */
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Hide non-critical columns in tables if needed, or rely on scroll */
}

/* Mobile Cart Toggle (Floating Pill Style - Matches QR Menu) */
.mobile-cart-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--text-heading);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    display: none;
    /* JS toggles flex */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 200;
    cursor: pointer;
    animation: slideUp 0.3s;
}

.mct-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.mct-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mct-count span {
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.mct-total {
    font-size: 1.1rem;
    font-weight: 700;
}

.mct-action {
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* --- RESPONSIVE IMPROVEMENTS --- */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* Hide Desktop Sidebar elements if present */
    .topbar {
        padding: 0 20px;
    }

    .user-info {
        gap: 15px;
    }

    .date-display {
        display: none;
    }

    .content-wrapper {
        padding: 20px;
    }

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

    /* POS Adjustments */
    .pos-layout {
        display: block;
        position: relative;
        height: auto;
        min-height: 100vh;
        padding-bottom: 100px;
    }

    .pos-menu-area {
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 15px;
    }

    /* Hide Cart Area by default (Drawer Mode) */
    .pos-cart-area {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh;
        /* Drawer height */
        z-index: 300;
        border-radius: 25px 25px 0 0;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .pos-cart-area.active {
        transform: translateY(0);
    }

    .products-grid {
        grid-template-columns: 1fr;
        /* 1 Column for Cards */
        gap: 15px;
        padding-bottom: 20px;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pos-cart-area {
        height: 90vh;
        /* Increase height slightly */
    }

    /* FORCE VISIBILITY ON MOBILE */
    .mobile-cart-toggle {
        display: flex !important;
    }
}

/* Sidebar Toggle Button Visibility */
@media (min-width: 1025px) {
    .toggle-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .toggle-sidebar {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-heading);
    }
}

/* --- LANDING PAGE STYLES (Refactored from inline) --- */

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    position: relative;
}

/* Add a dark overlay to ensure text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #fff;
}

.hero-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: 0.3s;
}

.hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
}

/* About Section */
.about-section {
    padding: 100px 20px;
    text-align: center;
    background: #fff;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 25px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 30px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.read-more-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

/* Features Section */
.features-section {
    padding: 80px 5%;
    background: #f8f9fa;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    margin-bottom: 15px;
    color: var(--text-heading);
    font-size: 1.25rem;
}

.feature-desc {
    color: #777;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: var(--text-heading);
    /* Fallback if secondary unchecked, assuming heading is dark */
    color: #fff;
    text-align: center;
}

.cta-title {
    margin-bottom: 20px;
    color: #fff;
    font-size: 2rem;
}

.cta-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
    color: #fff;
}

.cta-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 35px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #fff;
    color: var(--text-heading);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Smaller Laptops (max-width: 992px) */
@media (max-width: 992px) {
    .container-narrow {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {

    /* Layout Reset */
    .dashboard-container {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: var(--header-height);
        /* Ensure content doesn't hide behind fixed header */
    }

    .content-wrapper {
        padding: 20px;
    }

    /* Topbar adjustments */
    .topbar {
        padding: 0 15px;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
    }

    .user-info {
        gap: 10px;
    }

    .date-display {
        display: none;
        /* Hide date on small screens to save space */
    }

    .profile-dropdown span {
        display: none;
        /* Hide username, show only avatar */
    }

    /* Hero adjustments */
    .hero-section {
        height: auto;
        min-height: 70vh;
        padding: 80px 20px;
        background-attachment: scroll;
        /* Fixed bg often causes issues on mobile */
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Sections padding */
    .about-section,
    .features-section,
    .cta-section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 25px;
    }

    .feature-card {
        padding: 30px;
    }

    /* POS adjustments - Ensure full width and vertical layout */
    .pos-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }

    .pos-menu-area {
        height: auto;
        overflow: visible;
        padding: 10px;
    }

    .pos-cart-area {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 2000;
        background: #fff;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(90%);
        /* Peek mode */
        transition: transform 0.3s ease;
    }

    .pos-cart-area.active {
        transform: translateY(0);
    }

    /* Toggle for cart on mobile - we might need to add this button dynamically via JS if not exists */

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-bottom: 80px;
        /* Space for fixed cart peek */
    }

    .pos-product-card {
        min-height: 180px;
    }

    .pp-img-container {
        height: 100px;
    }

    .pp-info {
        padding: 10px;
    }

    .pp-title {
        font-size: 0.9rem;
    }

    /* Table adjustments */
    .modern-table-wrapper {
        overflow-x: auto;
    }

    .modern-table {
        min-width: 600px;
        /* Force scroll */
    }

    .modern-table th,
    .modern-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* --- FOOTER STYLES --- */
.site-footer {
    background: var(--secondary);
    /* Assuming defined, else #1e1e2d */
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.footer-text {
    color: #a0a0a0;
    line-height: 1.6;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-item {
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}/ *   - - -   M o b i l e   T a b l e   C a r d   V i e w   - - -   * /  
 @ m e d i a   s c r e e n   a n d   ( m a x - w i d t h :   7 6 8 p x )   {  
         . m o d e r n - t a b l e   t h e a d   {  
                 d i s p l a y :   n o n e ;  
         }  
  
         . m o d e r n - t a b l e ,  
         . m o d e r n - t a b l e   t b o d y ,  
         . m o d e r n - t a b l e   t r ,  
         . m o d e r n - t a b l e   t d   {  
                 d i s p l a y :   b l o c k ;  
                 w i d t h :   1 0 0 % ;  
         }  
  
         . m o d e r n - t a b l e   t r   {  
                 m a r g i n - b o t t o m :   1 5 p x ;  
                 b a c k g r o u n d :   # f f f ;  
                 b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;  
                 b o r d e r - r a d i u s :   8 p x ;  
                 b o x - s h a d o w :   0   2 p x   5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 ) ;  
                 o v e r f l o w :   h i d d e n ;  
         }  
  
         . m o d e r n - t a b l e   t d   {  
                 t e x t - a l i g n :   r i g h t ;  
                 p a d d i n g :   1 0 p x   1 5 p x ;  
                 p o s i t i o n :   r e l a t i v e ;  
                 p a d d i n g - l e f t :   5 0 % ;  
                 / *   M a k e   s p a c e   f o r   l a b e l   * /  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   # e e e ;  
                 m i n - h e i g h t :   4 0 p x ;  
                 d i s p l a y :   f l e x ;  
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
                 a l i g n - i t e m s :   c e n t e r ;  
         }  
  
         . m o d e r n - t a b l e   t d : l a s t - c h i l d   {  
                 b o r d e r - b o t t o m :   n o n e ;  
                 b a c k g r o u n d :   # f c f c f c ;  
                 j u s t i f y - c o n t e n t :   c e n t e r ;  
                 / *   C e n t e r   a c t i o n   b u t t o n s   * /  
                 p a d d i n g - l e f t :   1 5 p x ;  
         }  
  
         . m o d e r n - t a b l e   t d : : b e f o r e   {  
                 c o n t e n t :   a t t r ( d a t a - l a b e l ) ;  
                 p o s i t i o n :   a b s o l u t e ;  
                 l e f t :   1 5 p x ;  
                 w i d t h :   4 5 % ;  
                 p a d d i n g - r i g h t :   1 0 p x ;  
                 w h i t e - s p a c e :   n o w r a p ;  
                 t e x t - a l i g n :   l e f t ;  
                 f o n t - w e i g h t :   6 0 0 ;  
                 c o l o r :   v a r ( - - t e x t - m u t e d ) ;  
                 f o n t - s i z e :   0 . 9 r e m ;  
         }  
  
         / *   T w e a k s   f o r   s p e c i f i c   c o l u m n s   l i k e   I D   o r   A c t i o n s   t h a t   m i g h t   n e e d   f u l l   w i d t h   o r   s p e c i a l   a l i g n m e n t   * /  
         . m o d e r n - t a b l e   t d [ d a t a - l a b e l = " Ä ° Å xl e m " ]   {  
                 j u s t i f y - c o n t e n t :   c e n t e r ;  
         }  
 }  
 / *   - - -   M o b i l e   T a b l e   C a r d   V i e w   -   F O R C E D   v 2   - - -   * /  
 @ m e d i a   s c r e e n   a n d   ( m a x - w i d t h :   7 6 8 p x )   {  
         . m o d e r n - t a b l e   t h e a d   {  
                 d i s p l a y :   n o n e   ! i m p o r t a n t ;  
         }  
  
         . m o d e r n - t a b l e ,  
         . m o d e r n - t a b l e   t b o d y ,  
         . m o d e r n - t a b l e   t r ,  
         . m o d e r n - t a b l e   t d   {  
                 d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
                 w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         }  
  
         . m o d e r n - t a b l e   t r   {  
                 m a r g i n - b o t t o m :   2 0 p x   ! i m p o r t a n t ;  
                 b a c k g r o u n d :   # f f f   ! i m p o r t a n t ;  
                 b o r d e r :   1 p x   s o l i d   # e 0 e 0 e 0   ! i m p o r t a n t ;  
                 b o r d e r - r a d i u s :   1 0 p x   ! i m p o r t a n t ;  
                 b o x - s h a d o w :   0   4 p x   6 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 )   ! i m p o r t a n t ;  
                 p o s i t i o n :   r e l a t i v e ;  
         }  
  
         . m o d e r n - t a b l e   t d   {  
                 t e x t - a l i g n :   r i g h t   ! i m p o r t a n t ;  
                 p a d d i n g :   1 2 p x   1 5 p x   ! i m p o r t a n t ;  
                 p a d d i n g - l e f t :   5 0 %   ! i m p o r t a n t ;  
                 p o s i t i o n :   r e l a t i v e   ! i m p o r t a n t ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   # e e e   ! i m p o r t a n t ;  
                 d i s p l a y :   f l e x   ! i m p o r t a n t ;  
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n   ! i m p o r t a n t ;  
                 a l i g n - i t e m s :   c e n t e r   ! i m p o r t a n t ;  
                 m i n - h e i g h t :   4 5 p x   ! i m p o r t a n t ;  
         }  
  
         . m o d e r n - t a b l e   t d : l a s t - c h i l d   {  
                 b o r d e r - b o t t o m :   n o n e   ! i m p o r t a n t ;  
                 j u s t i f y - c o n t e n t :   c e n t e r   ! i m p o r t a n t ;  
                 b a c k g r o u n d :   # f 8 f 9 f a   ! i m p o r t a n t ;  
                 p a d d i n g - l e f t :   1 5 p x   ! i m p o r t a n t ;  
         }  
  
         . m o d e r n - t a b l e   t d : : b e f o r e   {  
                 c o n t e n t :   a t t r ( d a t a - l a b e l ) ;  
                 p o s i t i o n :   a b s o l u t e ;  
                 l e f t :   1 5 p x ;  
                 w i d t h :   4 0 % ;  
                 t e x t - a l i g n :   l e f t ;  
                 f o n t - w e i g h t :   7 0 0 ;  
                 c o l o r :   # 5 5 5 ;  
                 f o n t - s i z e :   0 . 9 r e m ;  
                 d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
         }  
 }  
 
/* Custom Badges for Web Orders */
.badge-onway { background-color: #8e44ad !important; color: #fff !important; }
.badge-purple { background-color: #9b59b6 !important; color: #fff !important; }

/* Bootstrap 4 Badge Compatibility */
.badge-primary { background-color: #0d6efd !important; color: #fff !important; }
.badge-secondary { background-color: #6c757d !important; color: #fff !important; }
.badge-success { background-color: #198754 !important; color: #fff !important; }
.badge-danger { background-color: #dc3545 !important; color: #fff !important; }
.badge-warning { background-color: #ffc107 !important; color: #000 !important; }
.badge-info { background-color: #0dcaf0 !important; color: #000 !important; }
.badge-light { background-color: #f8f9fa !important; color: #000 !important; }
.badge-dark { background-color: #212529 !important; color: #fff !important; }
