/* ============================================
   AI Virtual Try-On - Styles
   ============================================ */

.btn-tryon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-tryon:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-tryon:active { transform: scale(0.98); }

.tryon-modal-content {
    border-radius: 18px;
    border: none;
    overflow: hidden;
}

.tryon-modal-content .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}
.tryon-modal-content .modal-header .btn-close { filter: invert(1) brightness(2); }

.tryon-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}

/* Upload buttons */
.tryon-upload-buttons {
    display: flex;
    gap: 12px;
}
.tryon-upload-btn {
    flex: 1;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}
.tryon-upload-btn:hover {
    border-color: #6366f1;
    background: #f5f6ff;
}
.tryon-upload-btn i { font-size: 26px; color: #6366f1; }

/* Preview */
.tryon-preview-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    max-height: 320px;
    background: #f1f5f9;
    text-align: center;
}
.tryon-preview-wrap img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}
.tryon-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
}

/* Error box */
.tryon-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
}

/* Generate button */
.tryon-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 15px;
}
.tryon-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading skeleton */
.tryon-skeleton {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}
.tryon-skeleton-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: tryon-shimmer 1.4s infinite;
}
@keyframes tryon-shimmer {
    100% { left: 100%; }
}
.tryon-loading-text {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    margin-bottom: 2px;
}
.tryon-loading-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* Result */
.tryon-result-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 14px;
    background: #f1f5f9;
}
.tryon-result-actions {
    display: flex;
    gap: 10px;
}
.tryon-download-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.tryon-retry-btn {
    flex: 1;
    background: #f1f5f9;
    color: #374151;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .tryon-upload-buttons { gap: 8px; }
    .tryon-upload-btn { padding: 16px 6px; font-size: 12px; }
    .tryon-upload-btn i { font-size: 22px; }
    .tryon-result-actions { flex-direction: column; }
}
