/* QR Code Page */
.qrcode-page {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.qrcode-header {
    margin-bottom: 2rem;
}

.qrcode-header .header-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.qrcode-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* QR Code Display Card */
.qrcode-display-card {
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.qr-display-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.qr-image-large {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.qr-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-identifier-box {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qr-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-code-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', monospace;
}

.qr-actions-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-action-primary {
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-action-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-action-secondary {
    padding: 0.875rem 1.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action-secondary:hover:not(:disabled) {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* Customization Card */
.qrcode-customization-card {
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.customization-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo-upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.logo-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: white;
}

.logo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-remove-logo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-logo:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.logo-upload-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f9fafb;
    color: #6b7280;
}

.upload-icon {
    font-size: 2rem;
}

.logo-upload-placeholder p {
    font-size: 0.875rem;
    margin: 0;
}

.logo-input {
    display: none;
}

.btn-upload {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.template-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.template-option {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.template-option:hover {
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-option.active {
    border-color: #1e3a8a;
    background: rgba(30, 58, 138, 0.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.template-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
}

.template-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.template-logo-placeholder {
    font-size: 2rem;
}

.template-qr-placeholder {
    width: 60px;
    height: 60px;
    background: #1e3a8a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.template-headline-placeholder {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.template-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.save-section {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-save {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Guide Card */
.qr-guide-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .qrcode-container {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .template-selection {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .qr-actions-modern {
        flex-direction: column;
    }
}

