/* Scanner specific styles */

/* Avatar circle for user initials */
.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .avatar-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 10px rgba(0, 105, 217, 0.2);
}

[data-bs-theme="dark"] .avatar-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 0 15px rgba(0, 105, 217, 0.4);
}

/* Scan result container */
.scan-result-container {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.scan-result-container.show {
    max-height: 500px;
    opacity: 1;
}

[data-bs-theme="light"] .scan-result-container .card {
    background: linear-gradient(145deg, white, var(--light-gradient-end));
}

/* Make the barcode input field more prominent */
#registration_code {
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.qr-btn {
    margin-right: 10px;
    border-radius: 10px !important;
}

#registration_code:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] #registration_code {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
}

[data-bs-theme="dark"] #registration_code:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 105, 217, 0.25);
    border-color: var(--primary-color);
}

/* Event selector styling */
.scanner-form .form-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

[data-bs-theme="dark"] .scanner-form .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

[data-bs-theme="dark"] .scanner-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: var(--radius);
        overflow-x: auto;
    }
}

/* Scan result styling */
.scan-icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .scan-icon-container {
    background: linear-gradient(145deg, white, var(--light-gradient-end));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .scan-icon-container {
    background-color: rgba(255, 255, 255, 0.05);
}

/* User info card styling */
.user-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-info-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.user-info-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}
