/**
 * Copyright © Elsy. All rights reserved.
 */

/* Word Count Styles */
.word-count {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    margin-top: 4px;
}

.word-count .warning {
    color: #ffc107;
}

.word-count .error {
    color: #dc3545;
    font-weight: bold;
}

/* Virtual Try-On Gallery Styles */
.dressme-gallery-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.gallery-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-loading {
    text-align: center;
    padding: 60px 20px;
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid #e9ecef;
}

.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.gallery-item-inner {
    position: relative;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-actions {
    display: flex;
    gap: 8px;
}

.gallery-actions .btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

.gallery-actions .view-btn {
    background: #007bff;
    color: white;
}

.gallery-actions .view-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.gallery-info {
    padding: 16px;
}

.gallery-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.gallery-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.gallery-date {
    color: #6c757d;
    font-size: 12px;
}

.gallery-actions {
    text-align: center;
    padding: 20px;
}

.gallery-actions .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Modal Styles */
#virtual-tryon-modal {
    display: none;
}

#virtual-tryon-modal.show {
    display: block !important;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

/* Magento Modal Content Styling */
#virtual-tryon-modal .modal-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#virtual-tryon-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px; display: none;
}

#virtual-tryon-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 20px;
    text-align: right;
}

.modal-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: grab;
}

.modal-image:active {
    cursor: grabbing;
}

.image-zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 5px;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-product-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.product-details h6 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
}

.product-sku {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.product-type {
    color: #6c757d;
    text-transform: capitalize;
}

.product-price, .product-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.price-label, .date-label {
    color: #6c757d;
    font-weight: 500;
}

.price-value {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.date-value {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .gallery-info {
        padding: 12px;
    }

    .gallery-product-name {
        font-size: 14px;
    }

    .gallery-price {
        font-size: 14px;
    }

    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 10px auto;
    }

    .modal-image {
        max-height: 300px;
    }

    .image-zoom-controls {
        top: 5px;
        right: 5px;
    }

    .zoom-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .gallery-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .product-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dress Up Button Styles */
.dress-up-button-container {
    margin: 10px 0;
}

.dress-up-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.dress-up-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.dress-up-button.added {
    background-color: #28a745;
    border-color: #28a745;
}

.dress-up-button.added:hover {
    background-color: #218838;
    border-color: #1e7e34;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.dress-up-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.dress-up-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dress-up-icon {
    flex-shrink: 0;
    margin-left: 5px;
}

/* Small Button for Product Lists */
.dress-up-button-small-container {
    margin: 5px 0;
}

.dress-up-small {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 80px;
    justify-content: center;
}

.dress-up-small:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    text-decoration: none;
}

.dress-up-small.added {
    background-color: #28a745;
    border-color: #28a745;
}

.dress-up-small.added:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.dress-up-icon-small {
    flex-shrink: 0;
    margin-right: 3px;
}

.dress-up-text {
    font-size: 11px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}
/* Responsive Design */
@media (max-width: 768px) {
    .dress-up-button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .dress-up-icon {
        width: 14px;
        height: 14px;
    }

    .dress-up-small {
        min-width: 32px;
        padding: 4px;
    }

    .dress-up-icon-small {
        margin-right: 0;
    }

}


/* Enhanced DressMe Page Styles */
.dressme-selections-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.selection-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state h4 {
    margin: 16px 0 8px 0;
    color: #495057;
}

.empty-state p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    color: #6c757d;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Enhanced Product Cards */
.selections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.selection-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.selection-card.removing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.card-image-container {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.selection-card:hover .product-image {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.product-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.remove-selection-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.remove-selection-btn:hover {
    opacity: 1;
    background: #dc3545;
    transform: scale(1.1);
}

.card-content {
    padding: 16px;
}

.product-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    line-height: 1.3;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin: 4px 0;
}

.product-sku {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

.selections-actions-enhanced {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent; color: #ffffff !important;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

/* Enhanced Image Upload Area */
.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.image-upload-area.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-placeholder h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-weight: 600;
}

.upload-placeholder p {
    margin: 0 0 12px 0;
    color: #6c757d;
}

.upload-specs {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.image-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.uploaded-image-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.image-preview-container:hover .image-overlay {
    opacity: 1;
}

.change-image-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.change-image-btn:hover {
    background: #0056b3;
}

/* Single Column DressMe Page */
.dressme-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
}

.page-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Enhanced Upload Card */
.dressme-upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
}

.dressme-upload-card .card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.col-md-6 {
    min-width: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #007bff;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #f0f8ff;
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex: 1;
}

.radio-title {
    font-weight: 600;
    color: #495057;
}

.radio-desc {
    font-size: 14px;
    color: #6c757d;
}

/* Upload History Section */
.dressme-history-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
}

.dressme-history-card .card-header {
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
}

.upload-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.upload-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upload-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.upload-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.upload-status-badge.uploaded {
    background: #28a745;
}

.upload-status-badge.processing {
    background: #ffc107;
    color: #212529;
}

.upload-status-badge.completed {
    background: #007bff;
}

.upload-status-badge.failed {
    background: #dc3545;
}

.upload-info {
    padding: 16px;
}

.upload-filename {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.upload-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.processing-type {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.file-size {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.upload-description {
    font-size: 13px;
    color: #6c757d;
    margin: 8px 0;
    line-height: 1.4;
}

.ai-prompt-display {
    font-size: 13px;
    color: #495057;
    margin: 8px 0;
    padding: 8px;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.upload-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

/* Info Card */
.dressme-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
}

.dressme-info-card .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #495057;
}

.step-content p {
    margin: 0;
    color: #6c757d;
    line-height: 1.4;
}

/* Selection Controls */
.selection-checkbox-container {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 123, 255, 0.9);
    padding: 6px 10px;
    border-radius: 12px;
    z-index: 10;
}

.checkbox-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.product-checkbox {
    margin-right: 5px;
    cursor: pointer;
}

.image-selection-container {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(111, 66, 193, 0.9);
    padding: 6px 10px;
    border-radius: 12px;
    z-index: 10;
}

.image-radio {
    margin-right: 5px;
    cursor: pointer;
}

.radio-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

/* Selection Summary */
.selection-summary {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.selected-count {
    font-weight: 600;
    color: #495057;
}

.selected-count.error {
    color: #dc3545;
}

/* Processing Card */
.dressme-processing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
    border: 2px solid #007bff;
}

.dressme-processing-card .card-header {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.processing-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.processing-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.processing-actions {
    text-align: center;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* Processing Result Display */
.processing-result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin: 20px 0;
    overflow: hidden;
    border: 2px solid #28a745;
    animation: slideInDown 0.5s ease;
}

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

.result-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.result-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.result-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.result-content {
    padding: 30px;
}

.combined-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.combined-image-container h4 {
    margin: 0 0 20px 0;
    color: #495057;
}

.combined-result-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.image-info p {
    margin: 5px 0;
    color: #6c757d;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.result-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dressme-page-container {
        padding: 10px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .uploads-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 15px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Sequential AI Processing Styles */
.ai-processing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-processing-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ai-processing-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ai-processing-modal .modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.ai-processing-modal .modal-header h3 {
    margin: 0 0 8px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.ai-processing-modal .modal-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.ai-processing-modal .modal-body {
    padding: 24px;
}

.processing-steps {
    margin-bottom: 24px;
}

.processing-step {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.processing-step.processing {
    border-left-color: #007bff;
    background: #e3f2fd;
}

.processing-step.completed {
    border-left-color: #28a745;
    background: #e8f5e8;
}

.processing-step.failed {
    border-left-color: #dc3545;
    background: #fdeaea;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.processing-step.processing .step-icon {
    background: #007bff;
    color: white;
    animation: pulse 1.5s infinite;
}

.processing-step.completed .step-icon {
    background: #28a745;
    color: white;
}

.processing-step.failed .step-icon {
    background: #dc3545;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.step-status {
    font-size: 14px;
    color: #6c757d;
}

.processing-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Sequential Processing Results */
.sequential-processing-result {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.sequential-processing-result .result-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.sequential-processing-result .result-header h3 {
    margin: 0 0 8px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.sequential-processing-result .result-header p {
    margin: 0 0 16px;
    color: #6c757d;
    font-size: 16px;
}

.processing-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.summary-item {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.generated-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.generated-image-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generated-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    overflow: hidden;
}

.generated-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.download-btn {
    background: white;
    color: #007bff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
}

.image-info {
    padding: 16px;
}

.image-info h4 {
    margin: 0 0 8px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.product-sku {
    margin: 0 0 12px;
    color: #6c757d;
    font-size: 14px;
}

.processing-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.processing-details span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

.result-actions {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.result-actions .btn {
    margin: 0 8px;
}

/* Photo Quality Tips Styles */
.photo-quality-tips {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.tips-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tips-title {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
}

.tips-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.sample-photos {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-photo {
    text-align: center;
    flex: 0 0 auto;
}

.sample-image {
    width: 180px;
    height:auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.sample-image:hover {
    border-color: #28a745;
}

.sample-label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 500;
}

/* Responsive adjustments for sequential processing */
@media (max-width: 768px) {
    .ai-processing-modal .modal-content {
        width: 95%;
        margin: 20px;
    }

    .processing-summary {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .generated-images-grid {
        grid-template-columns: 1fr;
    }

    .processing-details {
        justify-content: center;
    }

    .sample-photos {
        gap: 8px;
    }

    .sample-image {
        width: 125px;
        height: auto;
    }

    .tips-description {
        font-size: 12px;
    }
}

/* Daily Usage Info Styles */
.daily-usage-info {
    margin: 20px 0;
}

.usage-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.usage-icon {
    color: #1976d2;
    flex-shrink: 0;
}

.usage-content h4 {
    margin: 0 0 4px 0;
    color: #1976d2;
    font-size: 16px;
    font-weight: 600;
}

.usage-content p {
    margin: 0;
    color: #424242;
    font-size: 14px;
}

.daily-usage-limit {
    margin: 20px 0;
}

.limit-card {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.limit-icon {
    color: #d32f2f;
    flex-shrink: 0;
}

.limit-content h4 {
    margin: 0 0 4px 0;
    color: #d32f2f;
    font-size: 16px;
    font-weight: 600;
}

.limit-content p {
    margin: 0;
    color: #424242;
    font-size: 14px;
}

/* Responsive adjustments for daily usage */
@media (max-width: 768px) {
    .usage-card,
    .limit-card {
        padding: 12px 16px;
        gap: 10px;
    }

    .usage-content h4,
    .limit-content h4 {
        font-size: 14px;
    }

    .usage-content p,
    .limit-content p {
        font-size: 13px;
    }
}
