.membership-scanner-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

#qr-reader video {
    width: 100%;
}

#scan-result {
    margin-top: 20px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanning-indicator {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
}

.status-active {
    color: #00a32a;
    font-size: 72px;
    margin: 10px 0;
}

.status-inactive {
    color: #d63638;
    font-size: 72px;
    margin: 10px 0;
}

.status-message {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

#admin-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

#admin-toggle:hover {
    background-color: #e0e0e0;
}

#admin-panel {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

#admin-panel.show {
    display: block;
}

#close-admin {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

#close-admin:hover {
    color: #d63638;
}

.admin-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.admin-links a {
    display: block;
    padding: 10px;
    background-color: #f0f0f0;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.admin-links a:hover {
    background-color: #e0e0e0;
}

.error-message {
    color: #d63638;
    font-weight: bold;
    margin: 10px 0;
}