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

:root {
    --primary-color: #a29bfe;
    --primary-hover: #8c7ae6;
    --accent-pink: #e056fd;
    --accent-cyan: #00cec9;
    --accent-gradient: linear-gradient(135deg, #8c7ae6, #e056fd, #f78fb3);
    --bg-dark: #0d0a1a;
    --card-dark: rgba(31, 26, 58, 0.85);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-light: #f1f2f6;
    --text-muted: #a4b0be;
    --border-radius: 20px;
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(224, 86, 253, 0.2);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Ambient Neon Glowing Orbs */
.neon-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    animation: orbPulse 12s infinite alternate ease-in-out;
}

.neon-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #e056fd 0%, rgba(224, 86, 253, 0) 70%);
    top: -100px;
    left: -100px;
}

.neon-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #00cec9 0%, rgba(0, 206, 201, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
}

.neon-orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #6c5ce7 0%, rgba(108, 92, 231, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
}

@keyframes orbPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.45; }
    50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.65; }
    100% { transform: scale(0.95) translate(-20px, 30px); opacity: 0.5; }
}

/* Animated Floating Elements Container */
.hero-floating-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Floating Glass Cards / Stat Badges */
.glass-badge-hero {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(224, 86, 253, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    animation: floatHero 6s infinite ease-in-out alternate;
}

.glass-badge-hero i {
    font-size: 1.4rem;
}

.badge-pos-1 { top: 18%; left: 8%; animation-delay: 0s; }
.badge-pos-2 { top: 58%; left: 6%; animation-delay: -2s; }
.badge-pos-3 { top: 22%; right: 8%; animation-delay: -4s; }
.badge-pos-4 { top: 64%; right: 7%; animation-delay: -1s; }

/* Floating Food & Item Icons */
.floating-food-icon {
    position: absolute;
    font-size: 2.8rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    opacity: 0.85;
    animation: floatIcon 8s infinite ease-in-out alternate;
}

.food-pos-1 { top: 12%; left: 24%; animation-delay: 0s; }
.food-pos-2 { top: 78%; left: 22%; animation-delay: -3s; }
.food-pos-3 { top: 14%; right: 25%; animation-delay: -5s; }
.food-pos-4 { top: 76%; right: 21%; animation-delay: -2s; }
.food-pos-5 { top: 45%; left: 3%; animation-delay: -4s; }
.food-pos-6 { top: 45%; right: 3%; animation-delay: -1s; }

@keyframes floatHero {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1.5deg); }
}

@keyframes floatIcon {
    0% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-18px) scale(1.08) rotate(6deg); }
    100% { transform: translateY(5px) scale(0.96) rotate(-4deg); }
}

/* Dark Theme App Shell */
.bg-main {
    background-color: transparent !important;
    position: relative;
    z-index: 2;
}

/* Universal High-Contrast Dark Modal System */
.modal-content {
    background-color: #1f1a3a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(224, 86, 253, 0.2) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body label,
.modal-content label,
.modal-content .form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem;
}

.modal-content p,
.modal-content small {
    color: #dcdde1 !important;
}

.modal-content .form-control,
.modal-content .form-select {
    background-color: #e8f0fe !important;
    color: #101025 !important;
    border: 1px solid #c8d6e5 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0.6rem 0.9rem !important;
}

.modal-content .form-control::placeholder {
    color: #718093 !important;
    font-weight: 400;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    background-color: #ffffff !important;
    color: #101025 !important;
    box-shadow: 0 0 0 3px rgba(224, 86, 253, 0.4) !important;
    border-color: #e056fd !important;
}

/* Ultra Sleek Glassmorphic Login Card */
.card-dark-saas {
    background: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    color: var(--text-light);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand-title-neon {
    background: linear-gradient(135deg, #ffffff, #e056fd, #f78fb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.badge-saas-teal {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
}

.btn-saas-gradient {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 25px rgba(224, 86, 253, 0.45);
    transition: all 0.25s ease;
}

.btn-saas-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 86, 253, 0.65);
    color: #ffffff;
}

.input-saas-light {
    background-color: #e8f0fe !important;
    border: 1px solid #dcdde1;
    border-radius: 12px;
    color: #1a1a2e !important;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.input-saas-light:focus {
    box-shadow: 0 0 0 3px rgba(224, 86, 253, 0.4);
    border-color: var(--accent-pink);
}

.alert-saas-dark {
    background-color: rgba(39, 35, 72, 0.9);
    border: 1px solid #3b356b;
    color: #c7c6e0;
    border-radius: 12px;
}

.link-saas-purple {
    color: #c792ea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-saas-purple:hover {
    color: #ffffff;
}

.text-pink-glow {
    color: #f78fb3;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.text-pink-glow:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(247, 143, 179, 0.6);
}

/* Sidebar Navigation */
.app-sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #17132b;
    color: #fff;
    z-index: 100;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    border-right: 1px solid var(--card-border);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.sidebar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding: 1rem 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1.5rem;
    color: #a4b0be;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    color: #ffffff;
    background: rgba(224, 86, 253, 0.1);
    border-left-color: var(--accent-pink);
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Main Content Area */
.app-content {
    margin-left: 240px;
    padding: 2rem;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

/* Top Navbar */
.top-navbar {
    background: var(--card-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Modern Cards */
.card-custom {
    background: var(--card-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary { background: rgba(162, 155, 254, 0.15); color: #a29bfe; }
.stat-icon.success { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.stat-icon.warning { background: rgba(254, 202, 87, 0.15); color: #feca57; }
.stat-icon.danger { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }

/* POS Terminal UI */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    height: calc(100vh - 120px);
}

.pos-catalog {
    overflow-y: auto;
    padding-right: 5px;
}

.pos-cart {
    background: var(--card-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item-card {
    background: #252044;
    border: 1px solid #332b5c;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--card-border);
    background: #18142f;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.product-card {
    background: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    color: var(--text-light);
}

.product-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(224, 86, 253, 0.25);
}

.product-card .price-tag {
    font-weight: 700;
    color: #e056fd;
    font-size: 1.1rem;
}

/* Flavor Badges */
.badge-sabor {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    margin: 3px;
    transition: transform 0.15s ease;
}

.badge-sabor:hover {
    transform: scale(1.05);
}

.mesa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.mesa-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    background: var(--card-dark);
    border: 2px solid var(--card-border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.mesa-card.libre {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.mesa-card.ocupada {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.btn-primary-custom {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    box-shadow: 0 6px 20px rgba(224, 86, 253, 0.4);
    color: #fff;
}
