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

:root {
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #ff007f;
    --secondary: #00f2fe;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --success: #00e676;
    --danger: #ff1744;
    --warning: #ffb74d;
    --radius: 24px;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.15), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.15), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(111, 0, 255, 0.15), transparent 50%);
    animation: rotateBg 30s linear infinite;
    z-index: -1;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Header */
.main-header {
    background: rgba(15, 12, 41, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.cart-link {
    position: relative;
    background: var(--glass-bg);
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.badge {
    background: linear-gradient(45deg, var(--primary), #ff5e62);
    color: white;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 0 15px var(--primary);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 5rem;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.7s;
}

.product-card:hover::before {
    left: 150%;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.product-image {
    height: 240px;
    border-radius: 16px;
    background: rgba(0,0,0,0.3);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

.placeholder-img {
    color: rgba(255,255,255,0.1);
    font-size: 2rem;
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 23, 68, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid var(--danger);
    color: #ff8a80;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-info .desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.5;
}

.allergens {
    font-size: 0.85rem;
    color: var(--warning);
    background: rgba(255, 183, 77, 0.1);
    padding: 8px 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 183, 77, 0.2);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* Uiverse Animated Button */
.btn-add {
    position: relative;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(45deg, var(--primary), #ff5e62);
    transition: all 0.3s ease;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:active {
    transform: scale(0.95);
}

.btn-add::before {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s ease;
}

.btn-add:hover::before {
    left: 100%;
}

.btn-add:hover {
    box-shadow: 0 15px 30px rgba(255, 0, 127, 0.5);
    transform: translateY(-2px);
}

/* Forms & Checkout Glass Panels */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    padding-bottom: 5rem;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 3rem; }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.glass-panel h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    font-family: var(--font-main);
    font-size: 1.05rem;
    transition: 0.3s;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    background: rgba(0,0,0,0.4);
}

/* Payment Options */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-option:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.payment-option.active {
    border-color: var(--success);
    background: rgba(0, 230, 118, 0.1);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

/* Checkout Items */
.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.checkout-item:hover {
    border-color: var(--glass-border);
    background: rgba(255,255,255,0.05);
    transform: scale(1.02);
}

.item-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-qty {
    background: var(--primary);
    color: white;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-family: var(--font-display);
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.item-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-remove {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
    border: 1px solid transparent;
    width: 40px; height: 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 25px;
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
}

.price-highlight {
    font-family: var(--font-display);
    color: var(--success);
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* PIX Area */
.pix-container {
    background: rgba(0, 230, 118, 0.05);
    border: 2px dashed var(--success);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
}

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

.pix-header {
    color: var(--success);
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.qr-placeholder {
    margin: 30px 0;
    color: var(--success);
    filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.5));
}

.pix-code-box {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.pix-code-box code {
    color: var(--success);
    font-family: monospace;
    font-size: 1.1rem;
    word-break: break-all;
    text-align: left;
    flex: 1;
}

/* Login Page Specific */
.login-container {
    max-width: 450px;
    margin: 6rem auto;
}

.btn-login {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.5);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 230, 118, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 230, 118, 0.5);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0, 230, 118, 0.2);
    z-index: 9999;
    font-weight: 600;
    font-size: 1.1rem;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-notification i {
    font-size: 1.5rem;
    color: var(--success);
}

@keyframes slideIn {
    from { transform: translateX(120%) opacity: 0; }
    to { transform: translateX(0) opacity: 1; }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

/* Admin Dashboard Overrides for Glass Theme */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-color);
}

.sidebar {
    width: 280px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
    margin-bottom: 5px;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    box-shadow: inset 4px 0 0 var(--secondary);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.data-table th, .data-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    background: rgba(0,0,0,0.3);
    font-weight: 600;
    color: var(--text-muted);
}

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

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}
.status-preparing { background: rgba(255, 193, 7, 0.15); color: var(--warning); border: 1px solid rgba(255, 193, 7, 0.3); }
.status-out { background: rgba(0, 242, 254, 0.15); color: var(--secondary); border: 1px solid rgba(0, 242, 254, 0.3); }
.status-delivered { background: rgba(0, 230, 118, 0.15); color: var(--success); border: 1px solid rgba(0, 230, 118, 0.3); }

.pdv-cart {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--glass-border);
    grid-column: 1 / -1;
}

.empty-state i {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.pdv-item-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.pdv-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
    background: rgba(255,255,255,0.05);
}

.pdv-item-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.pdv-item-card .price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}
