@import "forms.css";

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", system-ui, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header - Clean card style like in screenshot */
#header {
    background: #ffffff;
    color: #1e293b;
    padding: 24px 20px;
    text-align: center;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#header h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1e293b;
}

/* WebSocket Status Bar - Material Design indicator */
#ws-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
}

.ws-status-bar-connected {
    background: #4caf50;
}

.ws-status-bar-disconnected {
    background: #f44336;
}

/* Content Area */
#content {
    flex: 1;
    padding: 20px 16px;
    padding-bottom: 120px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Card Styling - Like in screenshot */
.card, #waitlist-id, #waitscreen-info, #status, #venue-info {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.card:hover, #waitlist-id:hover, #waitscreen-info:hover, #status:hover, #venue-info:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

#waiting-title {
    text-align: center;
}

#disconnected {
    position: fixed;
    text-align: center;
    top:30%;
    bottom: 30%;
    left: 30px;
    right:30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1.3rem;
}

/* Footer - Floating card style */
#footer {
    background: #ffffff;
    color: #64748b;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#btn_clearLocalStorage {
    background: #ff5722;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

#btn_clearLocalStorage:hover {
    background: #e64a19;
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.4);
}

#lang-switcher {
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 28px;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

#lang-switcher:hover {
    background: #1976d2;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

/* Waitlist ID - Premium card like in screenshot */
#waitlist-id {
    font-size: 4.5rem;
    font-weight: 300;
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #3b82f6;
    margin: 24px 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

#waitlist-id::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
    border-radius: 20px 20px 0 0;
}

/* Important Information - Clean card like screenshot */
#waitscreen-info {
    font-size: 16px;
    text-align: center;
    padding: 24px;
    background: #ffffff;
    color: #64748b;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.6;
}

/* Alert Styling - Material Design alert */

div.alert-overlay {
    z-index: 10000;
    top:0;
    left:0;
    right:0;
    bottom:0;
    position: fixed;
}


.alert-active {
    animation: alertPulse 1s infinite;
}

@keyframes alertPulse {
    0% {
        background-color: rgba(255, 0, 0, .1);
    }
    50% {
        background-color: rgba(255, 0, 0, .25);
    }
    100% {
        background-color: rgba(255, 0, 0, .1);
    }
}

.alert-message {
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: #f44336;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.alert-buttons {
    text-align: center;
    margin-top: 20px;
}

.alert-buttons button {
    background: #4caf50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-buttons button:hover {
    background: #43a047;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

/* Button styling - Premium look like screenshot */
button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.25px;
}

button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

button:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Status Messages - Premium card style */
#status {
    text-align: center;
    font-size: 16px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    margin: 20px 0;
    color: #64748b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.6;
}

/* Venue Info */
#venue_name {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1e293b;
    letter-spacing: -0.5px;

}

#venue-info {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#venue-info h3 {
    margin-top: 0;
}

/* Toast Notifications - Modern card style */
#toast {
    position: fixed;
    bottom: 140px;
    left: 16px;
    right: 16px;
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    display: none;
    text-align: center;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Body Animation - Premium background */
body.alert-active {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #f8fafc 100%);
}



/* Overlay-Hülle (nimmt gesamte Seite ein) */
#overlay {
    display: none;
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    z-index: 9998;
}

/* Wenn sichtbar */
#overlay.overlay-visible {
    display: block;
}

/* Halbtransparenter Hintergrund + Blur */
#overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3); /* Abdunkeln */
    backdrop-filter: blur(6px);   /* Hintergrund verschwommen */
    -webkit-backdrop-filter: blur(6px); /* Safari */
}

/* Weiße Box in der Mitte */
#overlay-content {
    position: relative;
    background: #fff;
    color: #000;
    border-radius: 8px;
    max-width: 90%;
    margin: 5% auto;
    padding: 20px;
    max-height: 100%;
    z-index: 1; /* über dem backdrop */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow-y: scroll;
}

#overlay-close {
    float: right;
}


.company_logo {
    max-height: 150px; !important;
    text-align: center;
    overflow: hidden;
    display: block;
}

.company_logo img {
    max-height: 150px;
    width: auto;
}

#submit-registration {
    margin-top: 20px;
}

/* Sound Activation Styles */
.sound-activation-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    color: white;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3), 0 6px 20px rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

.sound-activation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.sound-activation-container:hover::before {
    left: 100%;
}

.sound-activation-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.4), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sound-activation-container:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

.sound-icon {
    margin-bottom: 24px;
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.sound-activation-container h2 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.sound-activation-container p {
    margin: 0 0 32px 0;
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.tap-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tap-circle {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: tap-pulse 1.5s ease-in-out infinite;
}

.tap-circle:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes tap-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.instruction-text {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Double tap feedback animation */
.sound-activation-container.tap-feedback {
    animation: tap-success 0.6s ease-out;
}

@keyframes tap-success {
    0% {
        transform: scale(1);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #header {
        padding: 16px;
    }

    #header h1 {
        font-size: 1.5rem;
    }

    #content {
        padding: 16px 12px;
        padding-bottom: 120px;
    }

    #waitlist-id {
        font-size: 3.5rem;
        padding: 32px 16px;
        margin: 20px 0;
    }

    #footer {
        flex-direction: column;
        padding: 10px 12px;
        gap: 6px;
    }

    #footer button, #footer select {
        width: auto;
        min-width: 100px;
    }

    .sound-activation-container {
        padding: 40px 24px;
        margin: 16px 0;
    }

    .sound-icon svg {
        width: 60px;
        height: 60px;
    }

    .sound-activation-container h2 {
        font-size: 1.25rem;
    }

    .instruction-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #header {
        padding: 12px;
    }

    #header h1 {
        font-size: 1.375rem;
    }

    #content {
        padding: 12px 8px;
    }

    #waitlist-id {
        font-size: 2.75rem;
        padding: 28px 12px;
    }

    .alert-message {
        font-size: 14px;
        padding: 16px;
    }

    #toast {
        bottom: 100px;
        left: 8px;
        right: 8px;
    }

    .sound-activation-container {
        padding: 32px 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .sound-activation-container:hover {
        transform: none;
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3), 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .sound-activation-container:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}
