/* C:\laragon\www\delivery-saas\index.css */

/* Reset & Base System */
:root {
    --primary: #ff4757;
    --primary-hover: #ff6b81;
    --secondary: #f1f2f6;
    --secondary-hover: #e4e7eb;
    --success: #2ed573;
    --warning: #ffa502;
    --danger: #ff4757;
    
    --bg-app: #f4f6f9;
    --white: #0f172a;
    --light: #334155;
    --gray: #64748b;
    --dark: #0f172a;
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    
    --header-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #ffffff;
    --select-option-bg: #ffffff;
    --card-bg: #ffffff;
    --hover-bg: rgba(0, 0, 0, 0.05);
    
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --secondary: #2f3542;
    --secondary-hover: #57606f;
    --bg-app: #0f1115;
    --white: #ffffff;
    --light: #f1f2f6;
    --gray: #747d8c;
    --dark: #1e2229;
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --glass-bg: rgba(30, 34, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --header-bg: rgba(15, 17, 21, 0.85);
    --input-bg: rgba(255, 255, 255, 0.05);
    --select-option-bg: #1e2229;
    --card-bg: #1e2229;
    --hover-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-app);
    color: var(--light);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.platform-header-logo{display:block;width:170px;height:44px;object-fit:cover;object-position:center 43%;border-radius:6px}
.platform-footer{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 20px;color:var(--gray);font-size:10px;text-align:center}
.platform-footer img{width:92px;height:28px;object-fit:cover;object-position:center 43%;border-radius:4px;opacity:.9}
.platform-footer strong{color:var(--light)}
.storefront-platform-footer{padding-top:8px;padding-bottom:18px}
@media(max-width:600px){.platform-header-logo{width:130px;height:38px}.platform-footer{gap:6px 9px}.platform-footer span:last-child{flex-basis:100%}}

/* Global Header */
.global-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand-logo {
    font-size: 24px;
}

.brand-name {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.brand-name small {
    color: var(--primary);
    font-size: 11px;
    vertical-align: super;
    text-transform: uppercase;
}

.global-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.tenant-selector-wrapper select {
    background-color: var(--secondary);
    color: var(--white);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

/* Layout Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spa-view {
    display: none;
    flex: 1;
    padding: 24px;
    animation: fadeIn 0.4s ease-in-out;
}

.spa-view.active {
    display: flex;
    flex-direction: column;
}

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

/* Common Components: Buttons & Forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

.form-input {
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.2s;
}

select option {
    background-color: var(--select-option-bg);
    color: var(--white);
}

.form-input:focus {
    border-color: var(--primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    cursor: pointer;
}

.form-group-checkbox label {
    font-size: 14px;
    cursor: pointer;
}

/* ================================================================= */
/* VISÃO 1: SAAS LANDING                                             */
/* ================================================================= */
.hero-section {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.hero-section h1 {
    font-family: var(--font-header);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    color: var(--gray);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.feature-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-header);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.plans-container {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-header);
    font-size: 32px;
    margin-bottom: 40px;
}

.plans-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    width: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.15);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.plan-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.plan-price {
    font-family: var(--font-header);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--white);
}

.plan-price span {
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.plan-card ul li {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--light);
}

/* ================================================================= */
/* VISÃO 2: APP DO CLIENTE (SMARTPHONE SIMULATOR)                    */
/* ================================================================= */
.pwa-simulator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.smartphone-frame {
    width: 375px;
    height: 780px;
    border: 12px solid #2d3436;
    border-radius: 40px;
    box-shadow: var(--card-shadow), 0 0 0 4px var(--glass-border);
    position: relative;
    overflow: hidden;
    background-color: var(--bg-app);
}

.smartphone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Esconder barra de rolagem no simulador */
.smartphone-screen::-webkit-scrollbar {
    display: none;
}

.app-header {
    background-color: var(--header-bg);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
}

.app-shop-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-emoji {
    font-size: 24px;
}

.app-shop-info h2 {
    font-size: 15px;
    font-family: var(--font-header);
    color: var(--white);
}

.shop-badge {
    font-size: 10px;
    color: var(--primary);
    background-color: rgba(255, 71, 87, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.customer-profile-badge {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--light);
    border: 1px solid var(--glass-border);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-profile-badge:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.billing-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.billing-span-2 { grid-column:span 2; }
.billing-subsection { margin-top:20px; padding-top:18px; border-top:1px solid var(--glass-border); }
.billing-subsection h4 { margin:0 0 14px; font-size:14px; }
@media (max-width: 850px) { .billing-form-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 560px) { .billing-form-grid { grid-template-columns:1fr; } .billing-span-2 { grid-column:auto; } }

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.app-banner {
    padding: 12px 16px;
}

.banner-content {
    background: linear-gradient(135deg, var(--primary), #e84118);
    padding: 16px;
    border-radius: 12px;
    color: var(--white);
}

.banner-content h3 {
    font-size: 16px;
    font-family: var(--font-header);
}

.banner-content p {
    font-size: 12px;
    opacity: 0.9;
}

.app-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px;
    scrollbar-width: none;
}

.app-categories::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.cat-chip.active {
    background-color: var(--primary);
    color: var(--white);
}

.app-menu-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-cat-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-cat-title {
    font-size: 15px;
    font-family: var(--font-header);
    color: var(--white);
    border-left: 3px solid var(--primary);
    padding-left: 8px;
    margin-top: 8px;
}

.prod-item-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.prod-item-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.prod-item-details {
    flex: 1;
    padding-right: 12px;
}

.prod-item-details h4 {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 4px;
}

.prod-item-details p {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 6px;
}

.prod-item-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--success);
}

.prod-item-img {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App Cart/Drawer Simulator */
.app-cart-drawer {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 15;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-cart-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info h5 {
    font-size: 13px;
    color: var(--white);
}

.cart-item-info p {
    font-size: 10px;
    color: var(--gray);
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
}

.drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-app);
}

.delivery-type-toggle {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.delivery-type-toggle .toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--gray);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.delivery-type-toggle .toggle-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.cart-totals {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

.total-highlight {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 4px;
}

/* Timeline Tracking Simulator */
.app-order-tracking {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.tracking-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tracking-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.tracking-status-badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.timeline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.timeline-step.active {
    opacity: 1;
}

.step-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.timeline-step.active .step-bullet {
    background-color: var(--primary);
}

.step-text {
    font-size: 14px;
    font-weight: 600;
}

.tracking-details {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    width: 100%;
}

/* ================================================================= */
/* CUSTOMER AUTHENTICATION MODALS / TABS                           */
/* ================================================================= */
#customer-login-view, #customer-register-view {
    animation: fadeIn 0.3s ease;
}

/* Customer Order History layout inside phone */
.customer-order-card-hist {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.hist-order-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.hist-order-body {
    font-size: 12px;
    color: var(--white);
}

.hist-order-total {
    font-weight: 700;
    color: var(--success);
    margin-top: 4px;
    display: block;
}

/* ================================================================= */
/* VISÃO 3: PAINEL ADMINISTRATIVO / GERENCIAL                         */
/* ================================================================= */
.admin-layout {
    display: flex;
    flex: 1;
    gap: 24px;
}

.admin-sidebar {
    width: 240px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: calc(100vh - 120px);
}

.admin-profile-sidebar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.user-avatar-placeholder {
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-details h4 {
    font-size: 13px;
    color: var(--white);
    font-family: var(--font-header);
}

.user-profile-details span {
    font-size: 11px;
    color: var(--gray);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.admin-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--white);
}

.admin-nav-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.admin-body {
    flex: 1;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.admin-tab {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-tab.active {
    display: block;
}

.tab-title {
    font-family: var(--font-header);
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
}

.tab-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

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

/* LOGIN CARD DESIGN */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 0;
}

.login-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 420px;
    box-shadow: var(--card-shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-family: var(--font-header);
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--white);
}

.login-header p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
}

.login-body {
    display: flex;
    flex-direction: column;
}

.login-hint {
    background-color: rgba(255, 165, 2, 0.05);
    border: 1px solid rgba(255, 165, 2, 0.1);
    color: var(--gray);
    font-size: 11px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Dashboard Analytics */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dash-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
}

.dash-card h3 {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dash-value {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.card-alert.alert-active {
    border-color: var(--warning);
    background-color: rgba(255, 165, 2, 0.05);
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media(max-width: 900px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
}

.chart-container h3 {
    font-size: 15px;
    font-family: var(--font-header);
    margin-bottom: 20px;
}

.mock-chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    padding-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.chart-bar-fill {
    width: 24px;
    background: linear-gradient(to top, var(--primary), var(--primary-hover));
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
    position: relative;
}

.chart-bar-fill:hover::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.chart-bar-label {
    font-size: 11px;
    color: var(--gray);
    margin-top: 8px;
}

.top-selling-list {
    list-style: none;
}

.top-selling-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-selling-list li:last-child {
    border-bottom: none;
}

/* Tables style */
.orders-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.data-table th {
    font-weight: 600;
    color: var(--gray);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status colors in Tables */
.status-pill {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending { background-color: rgba(255, 165, 2, 0.15); color: var(--warning); }
.status-preparing { background-color: rgba(30, 144, 255, 0.15); color: #1e90ff; }
.status-ready { background-color: rgba(46, 213, 115, 0.15); color: var(--success); }
.status-delivering { background-color: rgba(162, 155, 254, 0.15); color: #a29bfe; }
.status-completed { background-color: rgba(116, 125, 140, 0.15); color: var(--light); }
.status-cancelled { background-color: rgba(255, 71, 87, 0.15); color: var(--danger); }

/* Menu Grid Admin */
.menu-list-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-cat-section {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
}

.admin-cat-title {
    font-family: var(--font-header);
    font-size: 16px;
    color: var(--white);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.admin-prod-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
}

.admin-prod-img {
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-prod-info {
    flex: 1;
}

.admin-prod-info h4 {
    font-size: 13px;
    color: var(--white);
}

.admin-prod-info p {
    font-size: 10px;
    color: var(--gray);
}

.admin-prod-price {
    font-weight: 700;
    color: var(--success);
    font-size: 13px;
    margin-top: 4px;
}

.admin-prod-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* Ficha Técnica Layout */
.recipes-layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.recipes-product-list {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    height: 400px;
    overflow-y: auto;
}

.recipes-product-list h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.product-selector-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-selector-list li {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.product-selector-list li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.product-selector-list li.active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.recipe-editor-panel {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.empty-state-recipe {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--gray);
    font-size: 14px;
}

.recipe-editor-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}

.recipe-actions-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

/* ================================================================= */
/* VISÃO 4: KITCHEN DISPLAY SYSTEM (KDS)                              */
/* ================================================================= */
.kds-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

.kds-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}

@media(max-width: 900px) {
    .kds-board {
        grid-template-columns: 1fr;
    }
}

.kds-column {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - 160px);
}

.kds-column-header {
    padding: 16px;
    font-family: var(--font-header);
    font-weight: 700;
    text-align: center;
    color: var(--white);
}

.col-pending { background-color: var(--warning); }
.col-preparing { background-color: #1e90ff; }
.col-ready { background-color: var(--success); }

.kds-column-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}

.kds-order-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: borderPulse 3s infinite alternate;
}

@keyframes borderPulse {
    0% { border-color: rgba(255, 255, 255, 0.05); }
    100% { border-color: var(--primary); }
}

.kds-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.kds-time {
    color: var(--gray);
}

.kds-items-list {
    list-style: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kds-item-name {
    font-weight: 600;
    color: var(--white);
}

.kds-item-notes {
    font-size: 11px;
    color: var(--warning);
    font-style: italic;
    margin-left: 12px;
}

.kds-footer {
    display: flex;
    justify-content: flex-end;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border);
    width: 480px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    animation: modalScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.btn-close {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 450px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ================================================================= */
/* SIMULAÇÃO DE IMPRESSÃO TÉRMICA                                    */
/* ================================================================= */
.modal-content-thermal {
    background-color: #f7f7f7;
    color: #000;
    width: 320px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: modalScale 0.3s ease;
}

.thermal-header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.btn-close-thermal {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
}

.thermal-paper {
    background-color: #fff;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    min-height: 400px;
    max-height: 550px;
    overflow-y: auto;
    border-bottom: 6px dashed #ccc;
}

.thermal-actions {
    padding: 10px;
    background-color: #e6e6e6;
    border-radius: 0 0 8px 8px;
}

/* ================================================================= */
/* SIMULAÇÃO DE NFC-e                                                */
/* ================================================================= */
.modal-content-nfce {
    background-color: #fff;
    color: #000;
    width: 500px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    animation: modalScale 0.3s ease;
}

.nfce-header-sim {
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-nfce {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 18px;
    cursor: pointer;
}

.nfce-paper {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.4;
    overflow-y: auto;
    max-height: 600px;
}

.nfce-divider {
    border-top: 1px dashed #000;
    margin: 8px 0;
}

.nfce-double-divider {
    border-top: 2px solid #000;
    margin: 8px 0;
}

.nfce-bold {
    font-weight: 700;
}

.nfce-center {
    text-align: center;
}

.nfce-qrcode-placeholder {
    width: 120px;
    height: 120px;
    border: 2px solid #000;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 10px;
}

/* Custom Pizza Styles */
.flavor-selectors-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.pizza-price-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 16px;
}

.pizza-price-preview strong {
    font-size: 18px;
    color: var(--success);
}

.price-rule-alert-text {
    font-size: 11px;
    color: var(--warning);
}

/* ================================================================= */
/* GESTÃO DE MESAS E SALÃO                                           */
/* ================================================================= */
.tables-layout-container {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    align-items: flex-start;
}

.tables-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}

.table-card-btn {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 10px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.02);
}

.table-card-btn.selected {
    border-color: var(--primary) !important;
    background-color: rgba(255, 71, 87, 0.05);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.25);
}

.table-card-btn.free {
    border-bottom: 4px solid var(--success);
}

.table-card-btn.occupied {
    border-bottom: 4px solid var(--danger);
    background-color: rgba(255, 71, 87, 0.02);
}

.table-card-number {
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-header);
    letter-spacing: -0.2px;
}

.table-card-status {
    font-size: 20px;
}

.table-card-amount {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.table-card-amount span {
    color: var(--success);
}

.table-details-panel {
    flex: 1.2;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    position: sticky;
    top: 100px;
}

.table-bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.table-bill-header h3 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 800;
}

.table-orders-history {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.table-orders-history h4 {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.table-items-consumed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
    padding-right: 4px;
}

/* Scrollbar fina para itens consumidos */
.table-items-consumed::-webkit-scrollbar {
    width: 4px;
}
.table-items-consumed::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

@media (max-width: 768px) {
    /* Header toggle button */
    #btn-sidebar-toggle {
        display: inline-block !important;
    }
    
    .admin-layout {
        display: block;
    }

    /* Collapsible sidebar drawer style */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 250px;
        height: 100vh;
        z-index: 180;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        background-color: var(--card-bg); /* Background sólido */
        min-height: 100vh;
    }
    
    .admin-sidebar.mobile-active {
        left: 0;
    }

    .admin-body {
        padding: 16px;
        border-radius: 0;
        border: none;
    }

    .tables-layout-container {
        flex-direction: column;
        margin-top: 10px;
    }

    .tables-grid {
        width: 100%;
    }

    /* Table Details Panel as slide-up Bottom Sheet on mobile */
    .table-details-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        z-index: 150;
        border-radius: 24px 24px 0 0;
        border: 1px solid var(--glass-border);
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        background-color: var(--card-bg); /* Fundo sólido */
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: auto;
        display: block !important; /* Sempre visible block para animar pelo transform */
    }

    .table-details-panel.active {
        transform: translateY(0);
    }

    .btn-close-details {
        display: block !important;
    }

    .table-items-consumed {
        max-height: calc(75vh - 250px);
    }
}
