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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    width: 100%;
    padding: 15px 0;
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    font-weight: 700;
}

.header p {
    color: #b0b0b0;
    margin-top: 5px;
}

.content-wrapper {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.scanner-container {
    width: 100%;
    max-width: 400px;
    height: 40vh;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.message-and-list-container {
    width: 100%;
    max-width: 400px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#message-container {
    color: #ff5c5c;
    margin: 6px 0;
    padding: 10px;
    text-align: center;
    font-weight: 500;
    min-height: 20px;
    width: 100%;
}

.names-list {
    list-style: none;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    max-height: 30vh;
    overflow-y: auto;
}

.names-list li {
    padding: 12px 15px;
    margin: 8px 0;
    background-color: rgba(255, 92, 92, 0.2);
    border: 1px solid rgba(255, 92, 92, 0.4);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.names-list li.depart {
    background-color: rgba(255, 92, 92, 0.2);
    border: 1px solid rgba(255, 92, 92, 0.4);
    color: #ff5c5c;
}

.names-list li.arrived {
    background-color: rgba(75, 211, 105, 0.2);
    border: 1px solid rgba(75, 211, 105, 0.4);
    color: #4bd369;
}

.names-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 0;
}

#submit-btn {
    padding: 12px 30px;
    background: linear-gradient(to right, #007bff, #0063cc);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    width: 200px;
}

#submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

#submit-btn:active {
    transform: translateY(0);
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(255, 107, 107, 0.3);
    pointer-events: none;
}

.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4bd369;
    box-shadow: 0 0 10px #4bd369;
    animation: pulse 1.5s infinite;
}

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