/* QR Code Page - Minimal & Professional */

.qrcode-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.qrcode-header {
    margin-bottom: 2.5rem;
}

.qrcode-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
}

/* Container - Single Column Layout */
.qrcode-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* QR Code Display Card - Primary Focus */
.qrcode-display-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    order: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-header-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-header-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
}

/* QR Display Section */
.qr-display-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.qr-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #F9FAFB;
    border-radius: 12px;
    border: 2px dashed #E5E7EB;
}

.qr-image-large {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* QR Actions */
.qr-actions-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.btn-action-primary,
.btn-action-secondary {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-action-primary {
    background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.2);
}

.btn-action-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.btn-action-secondary {
    background: white;
    border: 1px solid #E5E7EB;
    color: #374151;
}

.btn-action-secondary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

/* Action Cards Section - Secondary */
.action-cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    order: 2;
}

.action-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.action-card:hover {
    border-color: #7B1FA2;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.1);
    transform: translateY(-1px);
}

.action-card:hover .action-card-arrow {
    transform: translateX(4px);
}

.action-card-icon {
    font-size: 1.5rem;
    color: #7B1FA2;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3E5F5;
    border-radius: 10px;
}

.action-card-content {
    flex: 1;
}

.action-card-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.action-card-content p {
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0;
}

.action-card-arrow {
    font-size: 1rem;
    color: #9CA3AF;
    transition: transform 0.2s;
}

/* Modals */
.customization-modal,
.print-service-modal {
    max-width: 700px;
}

.qrcode-customization-card,
.print-request-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Customization Form */
.customization-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #7B1FA2;
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

.form-hint {
    font-size: 0.8125rem;
    color: #6B7280;
}

/* Logo Upload */
.logo-upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
}

.logo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-logo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-remove-logo:hover {
    background: #DC2626;
}

.logo-upload-placeholder {
    width: 150px;
    height: 150px;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #F9FAFB;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.logo-upload-placeholder p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

.logo-input {
    display: none;
}

.btn-upload {
    width: fit-content;
}

/* Template Selection */
.template-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.template-option {
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.template-preview {
    aspect-ratio: 1;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1rem;
    background: white;
    transition: all 0.2s;
}

.template-option:hover .template-preview {
    border-color: #7B1FA2;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.1);
}

.template-option.active .template-preview {
    border-color: #7B1FA2;
    background: #F3E5F5;
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

.template-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
}

.template-logo-placeholder,
.template-qr-placeholder {
    font-size: 1.5rem;
}

.template-headline-placeholder {
    font-size: 0.75rem;
    color: #6B7280;
    text-align: center;
}

.template-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* Print Request */
.print-request-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.print-status-section {
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-approved {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-printing {
    background: #E0E7FF;
    color: #4338CA;
}

.status-shipped {
    background: #DCFCE7;
    color: #15803D;
}

.status-delivered {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.print-request-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.detail-label {
    color: #6B7280;
    min-width: 140px;
    font-weight: 500;
}

.detail-value {
    color: #111827;
    font-weight: 500;
}

/* Print Request Form */
.print-request-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #F9FAFB;
    border-color: #7B1FA2;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    min-width: 3rem;
    text-align: center;
}

.address-section {
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.address-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.address-display {
    font-size: 0.9375rem;
    color: #111827;
    line-height: 1.6;
}

.save-section {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .qr-display-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .qrcode-page {
        padding: 1rem;
    }

    .action-cards-section {
        grid-template-columns: 1fr;
    }

    .qr-actions-modern {
        grid-template-columns: 1fr;
    }

    .template-selection {
        grid-template-columns: 1fr;
    }
}
