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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-image: url("./pattern-dark.png");
    background-color: #131513;
    background-size: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
    background: #222222;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    padding: 24px;
}

.title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.emoji-timer {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    height: 36px;
}

.emoji-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    border-radius: 8px;
    font-size: 16px;
    font-family: monospace;
    cursor: pointer;
    user-select: all;
    padding: 0 16px;
}

.emoji-display::selection {
    background: green;
}

.emoji-display.copied {
    background: #324e32;
}

.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    width: 45px;
    color: white;
    min-width: 45px;
    background: #111111;
}

.timer.success {
    border-color: #4caf50;
    color: #4caf50;
}

* ::selection {
    background: white;
    color: black !important;
}


.qr-container {
    width: 250px;
    height: 250px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-top: 16px;
}

.qr-container canvas {
    border-radius: 8px;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.error-icon {
    width: 64px;
    height: 64px;
    background: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffcdd2;
}

.error-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: .5rem;
}

.error-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    max-width: 350px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    transition: all .3s ease;
}

.btn-primary {
    background: transparent;
    color: white;
}

.btn-primary:hover {
    background: #00000020;
}

.btn-secondary {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #eeeeee;
}

.session-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}

.session-id-value {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.session-id-value:hover {
    background: #00000050;
    color: white;
}

.session-id-value.copied {
    background: #324e32;
    color: #4caf50;
}

.hidden {
    display: none !important;
}

svg {
    width: 20px;
    height: 20px;
}

.check-icon {
    color: #4caf50;
}

.warning-icon {
    color: #f44336;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #222222;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.status-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-icon-container.processing {
    background: #e3f2fd;
    border: 4px solid #bbdefb;
}

.status-icon-container.success {
    background: #e8f5e9;
    border: 4px solid #c8e6c9;
}

.status-icon-container.error {
    background: #ffebee;
    border: 4px solid #ffcdd2;
}

.status-icon-container .loader {
    width: 48px;
    height: 48px;
    border: 6px solid #90caf9;
    border-top-color: #2196f3;
}

.status-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.status-description {
    font-size: 14px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

.success-icon {
    color: #4caf50;
    width: 32px;
    height: 32px;
}

.error-icon-svg {
    color: #f44336;
    width: 32px;
    height: 32px;
}
