/* Virtual Try-On Pro - Styles v2.1 */

#vtpro-tryon-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#vtpro-tryon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.vtpro-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: vtproFadeIn 0.3s ease;
}

.vtpro-modal-overlay.active {
    display: flex;
}

@keyframes vtproFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vtpro-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: vtproSlideUp 0.4s ease;
    position: relative;
}

@keyframes vtproSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vtpro-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.vtpro-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtpro-modal-close {
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vtpro-modal-close:hover {
    background: #ff4444;
    color: #fff;
}

.vtpro-modal-body {
    padding: 24px;
}

.vtpro-product-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.vtpro-product-preview img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.vtpro-product-preview .info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #333;
}

.vtpro-product-preview .info span {
    font-size: 13px;
    color: #888;
    background: #e8e8e8;
    padding: 3px 10px;
    border-radius: 20px;
}

.vtpro-upload-area {
    border: 3px dashed #ccc;
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    margin-bottom: 20px;
    position: relative;
}

.vtpro-upload-area:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.vtpro-upload-area.has-image {
    border-style: solid;
    border-color: #4CAF50;
    padding: 10px;
}

.vtpro-upload-area .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.vtpro-upload-area p {
    margin: 5px 0;
    color: #666;
    font-size: 15px;
}

.vtpro-upload-area .sub {
    font-size: 13px;
    color: #999;
}

.vtpro-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vtpro-upload-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    display: none;
}

.vtpro-upload-area.has-image .vtpro-upload-preview {
    display: block;
}

.vtpro-upload-area.has-image .upload-text {
    display: none;
}

.vtpro-extra-instructions {
    margin-bottom: 20px;
}

.vtpro-extra-instructions label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

.vtpro-extra-instructions textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.vtpro-extra-instructions textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.vtpro-generate-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vtpro-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.vtpro-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vtpro-loading {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.vtpro-loading.active {
    display: block;
}

.vtpro-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: vtproSpin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.vtpro-loading p {
    color: #666;
    font-size: 16px;
}

/* ========== COMPARISON VIEW ========== */
.vtpro-result {
    display: none;
}

.vtpro-result.active {
    display: block;
    animation: vtproFadeIn 0.5s ease;
}

.vtpro-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.vtpro-compare-item {
    text-align: center;
}

.vtpro-compare-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.vtpro-compare-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.vtpro-compare-item:first-child img {
    border-color: #ccc;
}

.vtpro-compare-item:last-child img {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.vtpro-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.vtpro-result-actions button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.vtpro-btn-save {
    background: #4CAF50;
    color: #fff;
}

.vtpro-btn-save:hover {
    background: #45a049;
}

.vtpro-btn-again {
    background: #f0f0f0;
    color: #555;
}

.vtpro-btn-again:hover {
    background: #e0e0e0;
}

/* Review Popup */
.vtpro-review-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.vtpro-review-popup.active {
    display: flex;
    animation: vtproFadeIn 0.3s ease;
}

.vtpro-review-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: vtproSlideUp 0.4s ease;
}

.vtpro-review-box h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #222;
}

.vtpro-review-box .desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.vtpro-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 32px;
    cursor: pointer;
}

.vtpro-stars span {
    color: #ddd;
    transition: color 0.2s;
}

.vtpro-stars span.active,
.vtpro-stars span:hover {
    color: #ffc107;
}

.vtpro-review-box input[type="text"],
.vtpro-review-box textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: inherit;
}

.vtpro-review-box input:focus,
.vtpro-review-box textarea:focus {
    outline: none;
    border-color: #667eea;
}

.vtpro-review-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.vtpro-review-actions button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.vtpro-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.vtpro-btn-skip {
    background: #f0f0f0;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .vtpro-modal {
        border-radius: 16px;
        max-height: 95vh;
    }
    .vtpro-modal-header h2 {
        font-size: 18px;
    }
    .vtpro-upload-area {
        padding: 25px 15px;
    }
    .vtpro-generate-btn {
        font-size: 15px;
        padding: 14px;
    }
    .vtpro-comparison {
        grid-template-columns: 1fr;
    }
    .vtpro-compare-item img {
        height: 220px;
    }
}

.vtpro-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.vtpro-error.active {
    display: block;
}
