Files

143 lines
2.7 KiB
CSS

.qr-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
z-index: 1200;
}
.qr-dialog {
background: #1c1c1e;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 16px;
width: 100%;
max-width: 520px;
max-height: 92vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.qr-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 1rem 1.25rem;
border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}
.qr-header h3 {
margin: 0;
font-family: 'Rajdhani', sans-serif;
font-size: 1.2rem;
font-weight: 700;
color: #ffffff;
}
.qr-subtitle {
margin: 0.2rem 0 0;
font-family: 'Rajdhani', sans-serif;
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.55);
}
.qr-close {
background: none;
border: none;
color: rgba(255, 255, 255, 0.6);
font-size: 1.1rem;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
}
.qr-close:hover {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
}
.qr-body {
padding: 1rem 1.25rem 1.25rem;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.9rem;
}
.qr-viewport {
width: 100%;
min-height: 260px;
border-radius: 12px;
overflow: hidden;
background: #000;
border: 1px solid rgba(255, 255, 255, 0.1);
}
::deep .qr-viewport video {
width: 100% !important;
border-radius: 12px;
}
::deep .qr-viewport img[alt="Info icon"],
::deep .qr-viewport img[alt="Camera based scan"] {
display: none;
}
.qr-status {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-family: 'Rajdhani', sans-serif;
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.7);
text-align: center;
}
.qr-status.error {
color: #f87171;
}
.qr-status .spinner {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.2);
border-top-color: #dc2626;
border-radius: 50%;
animation: qr-spin 0.8s linear infinite;
}
@keyframes qr-spin {
to { transform: rotate(360deg); }
}
.qr-manual {
border-top: 0.5px solid rgba(255, 255, 255, 0.1);
padding-top: 0.9rem;
}
.qr-manual label {
display: block;
font-family: 'Rajdhani', sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: rgba(255, 255, 255, 0.5);
margin-bottom: 0.4rem;
}
.qr-manual-row {
display: flex;
gap: 0.5rem;
}
.qr-manual-row .form-control {
flex: 1;
min-width: 0;
}