/* Preview Capture Styles */

.preview-container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: clamp(10px, 2.5vw, 25px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.preview-title {
    text-align: center;
    font-size: clamp(24px, 6vw, 64px);
    font-weight: bold;
    color: #222222;
    margin-bottom: clamp(15px, 3vw, 40px);
    line-height: 1.2;
}

.preview-content {
    display: flex;
    gap: clamp(15px, 3vw, 40px);
    margin-bottom: clamp(15px, 3vw, 40px);
    flex: 1;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Photo Strip Container */
.photo-strip-container {
    flex: 1 1 min(400px, 50vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.photo-strip {
    background: linear-gradient(135deg, var(--frame-color, #A2D2FF), var(--frame-color, #A2D2FF));
    border: 3px solid var(--frame-color, #A2D2FF);
    border-radius: 15px;
    padding: clamp(12px, 2.5vw, 20px);
    padding-bottom: clamp(50px, 7vw, 80px); /* Add more space for logo */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: clamp(350px, 45vw, 480px);
    width: clamp(220px, 35vw, 300px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 15px);
    --frame-color: #A2D2FF;
}

/* Simplified dots pattern control */
.photo-strip::before {
    display: block;
    z-index: 1; /* Place dots BEHIND photos */
}

/* Hide dots only when explicitly set to no-photos */
.photo-strip.no-photos::before {
    display: none !important;
}

/* Layout for 2 poses - 1 column, 2 rows */
.photo-strip.layout-2 {
    min-height: 300px;
}

/* Layout for 3 poses - 1 column, 3 rows */
.photo-strip.layout-3 {
    min-height: 400px;
}

/* Layout for 4 poses - 1 column, 4 rows */
.photo-strip.layout-4 {
    min-height: 500px;
}

/* Layout for 6 poses - 2 columns, 3 rows */
.photo-strip.layout-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: clamp(6px, 1.2vw, 10px);
    min-height: clamp(320px, 40vw, 460px);
    width: clamp(280px, 45vw, 400px);
    max-width: 100%;
}

.photo-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, white 2px, transparent 2px);
    background-size: 20px 20px;
    border-radius: 12px;
    pointer-events: none;
    display: block;
    z-index: 1; /* Place dots BEHIND photos */
}

.photo-frame {
    position: relative;
    margin-bottom: clamp(10px, 2vw, 15px);
    border-radius: 8px;
    /* Removed overflow: hidden to allow stickers to overflow */
    background: white !important;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    aspect-ratio: 3/2; /* Tỷ lệ 1920x1280 = 3:2 */
    z-index: 2; /* Place photos ABOVE dots */
}

.photo-frame:last-child {
    margin-bottom: 0;
}

/* Grid layout photo frames */
.photo-strip.layout-6 .photo-frame {
    margin-bottom: 0;
    height: auto; /* Sử dụng tỷ lệ khung hình tự động */
}

.captured-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2; /* Tỷ lệ 1920x1280 = 3:2 */
    object-fit: cover;
    display: block;
    background: white;
    border-radius: 8px; /* Add border-radius to match export */
    position: relative;
    z-index: 3; /* Place photos ABOVE dots */
}

/* Hide broken image icon */
.captured-photo[src=""] {
    display: none;
}

/* Empty photo frame styling */
.photo-frame:not(:has(.captured-photo[src])) {
    background: white;
    border: 1px solid #e0e0e0;
}

/* Completely remove all default backgrounds and styling */
.captured-photo[src=""],
.captured-photo:not([src]) {
    display: none !important;
    background: none !important;
}

.photo-frame .captured-photo[src=""] + *,
.photo-frame .captured-photo:not([src]) + * {
    display: none;
}

/* Force white background for all photo frames */
.photo-frame {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
}

.photo-frame:has(.captured-photo[src=""]) {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
}

/* Remove any background from img elements */
.captured-photo {
    background: none !important;
}



/* Stickers */
.sticker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}



/* Corner Logo */
.corner-logo {
    position: absolute;
    bottom: clamp(15px, 3vw, 20px);
    left: clamp(8px, 2vw, 10px);
    display: flex;
    align-items: center;
    gap: clamp(3px, 1vw, 5px);
    padding: clamp(3px, 1vw, 5px) clamp(6px, 1.5vw, 8px);
    z-index: 10; /* Đảm bảo logo đè lên dots pattern */
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.logo-icon {
    width: auto;
    height: clamp(16px, 3vw, 20px);
}

.logo-text {
    font-size: 12px;
    font-weight: bold;
    color: #222222;
}

/* Timestamp and Date styling */
.timestamp,
.date {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 400; /* Regular weight */
    color: #222222;
    line-height: 1;
    margin: 0;
    z-index: 10; /* Đảm bảo text đè lên dots pattern */
}


/* Customization Panel */
.customization-panel {
    flex: 1 1 min(350px, 45vw);
    max-width: clamp(280px, 45vw, 400px);
    min-width: 0;
}

.customization-section {
    margin-bottom: clamp(20px, 4vw, 30px);
}

.customization-section h3 {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: bold;
    color: #333;
    margin-bottom: clamp(10px, 2vw, 15px);
}

/* Frame Color Options */
.frame-color-options {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 15px);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: clamp(6px, 1.5vw, 8px);
    flex: 1;
    position: relative;
}

.color-option {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ccc 25%, transparent 25%), 
                linear-gradient(-45deg, #ccc 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #ccc 75%), 
                linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.color-option.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.color-option[data-color="A2D2FF"] { background-color: #A2D2FF; }
.color-option[data-color="FFB5E8"] { background-color: #FFB5E8; }
.color-option[data-color="F9F871"] { background-color: #F9F871; }
.color-option[data-color="FFBE98"] { background-color: #FFBE98; }
.color-option[data-color="CDB4DB"] { background-color: #CDB4DB; }
.color-option[data-color="9FFFE0"] { background-color: #9FFFE0; }
.color-option[data-color="FF6B6B"] { background-color: #FF6B6B; }
.color-option[data-color="FFA45B"] { background-color: #FFA45B; }
.color-option[data-color="90E0EF"] { background-color: #90E0EF; }
.color-option[data-color="FFD6EC"] { background-color: #FFD6EC; }
.color-option[data-color="6C63FF"] { background-color: #6C63FF; }
.color-option[data-color="FFF2CC"] { background-color: #FFF2CC; }
.color-option[data-color="E0BBE4"] { background-color: #E0BBE4; }
.color-option[data-color="F28482"] { background-color: #F28482; }

.add-color-btn {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    border-radius: 50%;
    border: 2px solid #ccc;
    background: white;
    color: #666;
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-color-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

/* Sticker Options */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(6px, 1.5vw, 8px);
}

.sticker-option {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ccc 25%, transparent 25%), 
                linear-gradient(-45deg, #ccc 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #ccc 75%), 
                linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    position: relative;
}

.sticker-option:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.sticker-option.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: clamp(5px, 1vw, 10px);
    flex-wrap: wrap;
}

.btn {
    padding: clamp(8px, 1.8vw, 12px) clamp(16px, 3.5vw, 24px);
    border-radius: 25px;
    border: none;
    font-weight: bold;
    font-size: clamp(12px, 2.2vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 1.2vw, 8px);
    min-width: clamp(100px, 22vw, 150px);
    justify-content: center;
}

.btn-export {
    background: white;
    color: #222222;
    border: 1px solid #222222;
}

.btn-export:hover {
    background: #222222;
    color: white;
}

.btn-qr {
    background: white;
    color: #222222;
    border: 1px solid #222222;
}

.btn-qr:hover {
    background: #222222;
    color: white;
}

.btn-new {
    background: white;
    color: #222222;
    border: 1px solid #222222;
}

.btn-new:hover {
    background: #222222;
    color: white;
}

.btn-printer {
    background: white;
    color: #222222;
    border: 1px solid #222222;
}

.btn-printer:hover {
    background: #222222;
    color: white;
}

.arrow {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: bold;
}

/* Printer Button Container */
.printer-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-right: 20px;
}

/* Hide QR Code button temporarily */
/* ============================================================================
   QR CODE MODAL STYLES
   ============================================================================ */

.qr-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

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

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  min-height: 60px;
}

.qr-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #222222;
}

.qr-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: bold;
}

.qr-close-btn:hover {
  background: #f5f5f5;
  color: #222222;
}

.qr-modal-body {
  padding: 24px;
  text-align: center;
}

.qr-code-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

#qrCodeCanvas {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.qr-info p {
  margin: 0 0 16px 0;
  color: #636363;
  font-size: 14px;
  line-height: 1.5;
}

.qr-link-container {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
}

#qrLinkInput {
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #636363;
  background: white;
  font-family: monospace;
}

#qrLinkInput:focus {
  outline: none;
  border-color: #f9e200;
  box-shadow: 0 0 0 2px rgba(249, 226, 0, 0.2);
}

.btn-copy {
  background: #f9e200;
  color: #222222;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #e6cc00;
  transform: translateY(-1px);
}

.btn-copy:active {
  transform: translateY(0);
}


.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Modal overlay */
#qrCodeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

/* Responsive design */
@media (max-width: 768px) {
  .qr-modal-content {
    width: 95%;
    max-width: 380px;
    margin: 5px;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .qr-modal-header {
    padding: 8px 12px;
    min-height: 50px;
  }
  
  .qr-modal-header h3 {
    font-size: 14px;
  }
  
  .qr-close-btn {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  
  .qr-modal-body {
    padding: 12px;
  }
  
  .qr-code-container {
    margin-bottom: 12px;
    padding: 8px;
  }
  
  #qrCodeCanvas {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    padding: 8px;
  }
  
  .qr-info p {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .qr-link-container {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }
  
  #qrLinkInput {
    width: 100%;
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .btn-copy {
    width: 100%;
    padding: 8px;
    font-size: 13px;
  }
}

/* Mobile portrait - rất nhỏ */
@media (max-width: 480px) {
  .qr-modal-content {
    width: 98%;
    max-width: 320px;
    margin: 2px;
    max-height: 98vh;
  }
  
  .qr-modal-header {
    padding: 6px 8px;
    min-height: 45px;
  }
  
  .qr-modal-header h3 {
    font-size: 12px;
  }
  
  .qr-close-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .qr-modal-body {
    padding: 8px;
  }
  
  .qr-code-container {
    margin-bottom: 8px;
    padding: 6px;
  }
  
  #qrCodeCanvas {
    max-width: 150px;
    max-height: 150px;
    padding: 6px;
  }
  
  .qr-info p {
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  
  .qr-link-container {
    padding: 6px;
    gap: 6px;
  }
  
  #qrLinkInput {
    font-size: 10px;
    padding: 5px 6px;
  }
  
  .btn-copy {
    padding: 6px;
    font-size: 12px;
  }
}

/* .btn-qr {
    display: none !important;
} */

/* Responsive - Fluid Design */
/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .preview-content {
        gap: clamp(15px, 2vw, 25px);
        margin-bottom: clamp(8px, 1vw, 12px);
    }
    
    .customization-panel {
        max-width: clamp(300px, 45vw, 350px);
    }
    
    .action-buttons {
        gap: clamp(12px, 1.5vw, 18px);
        margin-top: clamp(8px, 1vw, 12px);
    }
}

/* iPad Pro specific adjustments */
@media (min-width: 1024px) and (max-width: 1366px) {
    .preview-content {
        gap: clamp(20px, 2vw, 30px);
        margin-bottom: clamp(5px, 0.5vw, 8px);
    }
    
    .customization-panel {
        max-width: clamp(320px, 40vw, 380px);
    }
    
    .action-buttons {
        gap: clamp(15px, 1.5vw, 20px);
        margin-top: clamp(5px, 0.5vw, 8px);
    }
    
    .preview-container {
        padding-bottom: clamp(10px, 1vw, 15px);
    }
}

/* When screen is too narrow for side-by-side layout */
@media (max-width: 900px) {
    .preview-content {
        flex-direction: column;
        align-items: center;
    }
    
    .photo-strip-container {
        flex: none;
        width: 100%;
        max-width: min(400px, 80vw);
    }
    
    .customization-panel {
        flex: none;
        width: 100%;
        max-width: min(400px, 80vw);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .color-picker-main {
        flex-direction: column;
        align-items: center;
    }
    
    .color-picker-sliders {
        flex-direction: row;
        justify-content: center;
    }
}

/* Very small screens - adjust grid layouts */
@media (max-width: 600px) {
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sticker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sticker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Custom Color Picker */
#customColorPicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-color-picker-content {
    background: white;
    border-radius: 15px;
    padding: clamp(15px, 3vw, 25px);
    max-width: min(400px, 90vw);
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.custom-color-picker-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

#pickr-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
    position: relative;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Iro.js specific styles */
.iro__colorPicker {
    margin: 0 auto !important;
}

.iro__wheel {
    border-radius: 50% !important;
}

.iro__slider {
    border-radius: 10px !important;
}

/* Tablet responsive for color picker */
@media (min-width: 768px) and (max-width: 1024px) {
    #pickr-container {
        min-height: 400px;
        max-width: 500px;
    }
    
    .custom-color-picker-content {
        max-width: 500px;
        padding: 30px;
    }
    
    .custom-color-picker-content h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .custom-color-actions {
        margin-top: 25px;
        gap: 20px;
    }
    
    .custom-color-actions .btn {
        padding: 12px 25px;
        font-size: 16px;
        min-width: 120px;
    }
}

/* Mobile responsive for color picker */
@media (max-width: 767px) {
    #pickr-container {
        min-height: 250px;
        max-width: 350px;
    }
    
    .custom-color-picker-content {
        max-width: 350px;
        padding: 20px;
    }
    
    .custom-color-picker-content h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .custom-color-actions {
        margin-top: 15px;
        gap: 10px;
    }
    
    .custom-color-actions .btn {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 80px;
    }
}

.custom-color-actions {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    justify-content: center;
    margin-top: clamp(15px, 3vw, 20px);
}

.custom-color-actions .btn {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: clamp(80px, 15vw, 120px);
    font-size: clamp(14px, 2.5vw, 16px);
}

.custom-color-actions .btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.custom-color-actions .btn-cancel:hover {
    background: #e9e9e9;
    border-color: #bbb;
}

.custom-color-actions .btn-apply {
    background: #007bff;
    color: white;
}

.custom-color-actions .btn-apply:hover {
    background: #0056b3;
}





/* Sticker option improvements */
.sticker-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.sticker-option.active {
    border: 2px solid #28a745;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* QR Code Modal Styles */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.qr-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.qr-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: qrModalSlideIn 0.3s ease-out;
}

@keyframes qrModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qr-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.qr-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.qr-modal-body {
    padding: 30px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px dashed #dee2e6;
}

.qr-code-container canvas {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.qr-info p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.qr-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.qr-link-container input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fa;
    color: #495057;
}

.qr-link-container input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.btn-copy {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}


/* Responsive Design */
@media (max-width: 768px) {
    .qr-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .qr-modal-header {
        padding: 20px 25px 15px;
    }
    
    .qr-modal-header h3 {
        font-size: 20px;
    }
    
    .qr-modal-body {
        padding: 25px 20px;
    }
    
    .qr-link-container {
        flex-direction: column;
    }
    
    .qr-link-container input {
        margin-bottom: 10px;
    }
    
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 