/* ===============================================
   PROFESSIONAL MODAL STYLES - PINK/PURPLE THEME
   =============================================== */

/* Neon Keyframes */
@keyframes neon-pulse-pink {
    0%, 100% { box-shadow: 0 0 20px #ff3cac, 0 0 30px #ff3cac, 0 0 40px #784ba0; }
    50% { box-shadow: 0 0 30px #784ba0, 0 0 40px #784ba0, 0 0 50px #ff3cac; }
}

@keyframes neon-text-pink {
    0%, 100% { text-shadow: 0 0 10px #ff3cac, 0 0 20px #ff3cac, 0 0 30px #784ba0; }
    50% { text-shadow: 0 0 10px #784ba0, 0 0 20px #784ba0, 0 0 30px #ff3cac; }
}

@keyframes fadeInNeon {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Base */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none; justify-content: center; align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity .4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #111123, #1a1a2e);
    padding: 30px 35px;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    position: relative;
    transform: scale(.95);
    transition: transform .4s ease;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 60, 172, 0.3);
    box-shadow: 
        0 0 40px rgba(255, 60, 172, 0.3),
        0 0 60px rgba(120, 75, 160, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    background: none; border: none;
    z-index: 10;
    transition: all 0.3s ease;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ff3cac;
    background: rgba(255, 60, 172, 0.1);
    text-shadow: 0 0 15px #ff3cac;
    transform: rotate(90deg);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 60, 172, 0.2);
}

.step {
    display: flex; flex-direction: column; align-items: center;
    position: relative; flex-grow: 1;
}

.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: #222; color: #666;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold;
    transition: all 0.4s ease;
    border: 2px solid #444;
    font-family: 'Orbitron', sans-serif;
}

.step-label {
    margin-top: 10px;
    font-size: 0.85em; color: #666;
    font-weight: 600; letter-spacing: 0.5px;
}

.step.active .step-number {
    background: linear-gradient(135deg, #ff3cac, #784ba0);
    color: #fff; border-color: #ff3cac;
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.5), 0 0 30px rgba(120, 75, 160, 0.3);
    animation: neon-pulse-pink 2s infinite;
}

.step.active .step-label {
    color: #ff3cac;
    text-shadow: 0 0 10px #ff3cac;
    animation: neon-text-pink 3s infinite;
}

.step.completed .step-number {
    background: #333; color: #ff3cac; border-color: #ff3cac;
    box-shadow: 0 0 10px rgba(255, 60, 172, 0.3);
}

.step.completed .step-label { color: #ff3cac; }

.step-connector {
    position: absolute; top: 20px; left: 50%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, #333, #555, #333);
    z-index: -1;
}

.step:first-child .step-connector { left: 50%; width: 50%; }
.step:last-child .step-connector { width: 50%; }

/* Step Sections */
.step-section { display: none; }
.step-section.active { display: block; animation: fadeInNeon 0.6s ease; }

/* Typography */
.neon-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2.5em !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    background: linear-gradient(90deg, #ff3cac, #784ba0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: neon-text-pink 3s infinite !important;
}

.neon-subtitle {
    color: #ff3cac !important;
    font-size: 1.2em !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    text-shadow: 0 0 15px #ff3cac !important;
}

.step-title {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 15px #ff3cac;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.neon-label {
    display: block;
    margin-bottom: 8px;
    color: #ff3cac;
    font-weight: 600;
    text-shadow: 0 0 10px #ff3cac;
}

.neon-input {
    width: 100% !important;
    padding: 12px 15px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(255, 60, 172, 0.3) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 1em !important;
    transition: all 0.3s ease !important;
}

.neon-input:focus {
    border-color: #ff3cac !important;
    box-shadow: 0 0 15px rgba(255, 60, 172, 0.4) !important;
    outline: none !important;
}

/* Counter */
.neon-counter {
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 60, 172, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.counter-btn {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ff3cac;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.counter-btn:hover {
    background: rgba(255, 60, 172, 0.2);
    color: #fff;
}

.counter-display {
    flex-grow: 1;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: bold;
}

/* Step 2 Layout */
.step2-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.map-column {
    flex: 2;
    min-width: 0;
}

.legend-column {
    flex: 1;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 60, 172, 0.3);
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.1);
}

.legend-column h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: #ff3cac;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 15px #ff3cac;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.legend-item:hover {
    background: rgba(255, 60, 172, 0.05);
    transform: translateX(5px);
}

.legend-color-box {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#selected-table-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(120, 75, 160, 0.3);
    color: #fff;
    font-size: 0.95em;
    line-height: 1.7;
}

#selected-table-info h4 {
    color: #784ba0;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 15px #784ba0;
}

/* Map Container */
.responsive-map-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(255, 60, 172, 0.3);
    box-shadow: 
        0 0 25px rgba(255, 60, 172, 0.2),
        inset 0 0 20px rgba(255, 60, 172, 0.05);
    background-size: cover;
    background-position: center;
}

.responsive-map-container svg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* SVG Tables */
.table-shape {
    stroke: #ff3cac;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 60, 172, 0.3));
}

.table-shape.available { fill: rgba(68, 68, 68, 0.8); }

.table-shape.available:hover { 
    fill: rgba(102, 102, 102, 0.9);
    stroke: #784ba0; stroke-width: 3;
    filter: drop-shadow(0 0 15px rgba(120, 75, 160, 0.6));
    transform: scale(1.05);
}

.table-shape.selected { 
    fill: rgba(255, 60, 172, 0.3);
    stroke: #ff3cac; stroke-width: 3;
    filter: drop-shadow(0 0 20px rgba(255, 60, 172, 0.8));
    animation: neon-pulse-pink 2s infinite;
}

.table-shape.occupied { 
    fill: rgba(239, 68, 68, 0.8);
    stroke: #ef4444;
    cursor: not-allowed; 
}

.table-label {
    fill: #fff;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 0 10px #000;
    font-family: 'Orbitron', sans-serif;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 60, 172, 0.2);
    padding-top: 25px;
}

.product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 60, 172, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #ff3cac;
    box-shadow: 0 0 15px rgba(255, 60, 172, 0.2);
    transform: translateY(-2px);
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.product-category {
    font-size: 0.85em;
    color: #a0a0a0;
    margin-top: 4px;
}

.product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #ff3cac;
    text-shadow: 0 0 8px rgba(255, 60, 172, 0.7);
    margin-top: 10px;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 60, 172, 0.3);
    color: #ff3cac;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background-color: rgba(255, 60, 172, 0.2);
    border-color: #ff3cac;
    color: #fff;
}

.qty-display {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    min-width: 25px;
    text-align: center;
}

/* Neon Buttons */
.neon-button {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff3cac, #784ba0);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 60, 172, 0.3);
}

.neon-button:hover {
    background: linear-gradient(135deg, #784ba0, #ff3cac);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(120, 75, 160, 0.5);
}

.neon-button.secondary {
    background: transparent;
    color: #ff3cac;
    border: 2px solid #ff3cac;
    box-shadow: 0 0 15px rgba(255, 60, 172, 0.2);
}

.neon-button.secondary:hover {
    background: rgba(255, 60, 172, 0.1);
    color: #fff;
    border-color: #784ba0;
    box-shadow: 0 0 25px rgba(120, 75, 160, 0.4);
}

/* Summary Box */
.neon-summary-box {
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 60, 172, 0.3);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Success Elements */
.neon-success-title {
    font-size: 2em;
    color: #00ff00;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px #00ff00;
    animation: neon-text-pink 2s infinite;
}

.neon-qr-container {
    margin: 25px 0;
}

.qr-code-wrapper {
    padding: 15px;
    background: #fff;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 0 25px rgba(255, 60, 172, 0.5);
}

.qr-code-image {
    width: 200px;
    height: 200px;
}

.neon-message {
    color: #ccc;
    margin: 20px 0;
    line-height: 1.6;
}

/* Message Modal */
.message-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; justify-content: center; align-items: center;
    z-index: 2001;
}

.message-modal-overlay.active {
    display: flex;
}

.message-modal-content {
    background: linear-gradient(145deg, #111123, #1a1a2e);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #784ba0;
    box-shadow: 
        0 0 30px rgba(120, 75, 160, 0.4),
        0 0 60px rgba(255, 60, 172, 0.2);
    text-align: center;
    max-width: 400px;
}

.message-title {
    font-size: 1.5em;
    color: #784ba0;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px #784ba0;
}

.message-text {
    margin: 20px 0;
    color: #fff;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .step2-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .legend-column {
        width: 100% !important;
        margin-top: 0 !important;
    }
    
    .responsive-map-container {
        height: auto !important;
        padding-top: 0 !important;
        min-height: 400px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .responsive-map-container svg {
        position: static !important;
        height: auto !important;
        width: 100% !important;
    }
    
    .step-indicator {
        padding: 15px !important;
    }
    
    .step-label {
        display: none !important;
    }
    
    .step-number {
        width: 35px !important;
        height: 35px !important;
    }
    
    .modal-content {
        padding: 20px !important;
        margin: 20px !important;
    }
    
    .neon-title {
        font-size: 2em !important;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        padding: 10px !important;
    }
    
    .step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9em !important;
    }
    
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-quantity {
        width: 100%;
        justify-content: space-between;
    }
}
