/* Temporary Image Uploader - Estilos CSS */

.tiu-uploader-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tiu-upload-area {
    border: 3px dashed #c3c4c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tiu-upload-area:hover {
    border-color: #2271b1;
    background-color: #f0f6fc;
}

.tiu-upload-area.dragover {
    border-color: #2271b1;
    background-color: #e7f3ff;
    transform: scale(1.02);
}

.tiu-upload-content {
    pointer-events: none;
}

.tiu-upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.tiu-upload-content h3 {
    margin: 0 0 8px 0;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.tiu-upload-content p {
    margin: 0 0 8px 0;
    color: #646970;
    font-size: 14px;
}

.tiu-browse-link {
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
}

.tiu-file-info {
    font-size: 12px !important;
    color: #8c8f94 !important;
    margin-top: 12px !important;
}

.tiu-progress-container {
    margin: 20px 0;
    text-align: center;
}

.tiu-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tiu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #72aee6);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.tiu-progress-text {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.tiu-result-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 8px;
}

.tiu-success-message h4 {
    margin: 0 0 16px 0;
    color: #1d2327;
    font-size: 16px;
}

.tiu-image-preview {
    margin: 16px 0;
    text-align: center;
}

.tiu-image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tiu-url-container {
    margin: 16px 0;
}

.tiu-url-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.tiu-url-input-group {
    display: flex;
    gap: 8px;
}

.tiu-url-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    font-family: monospace;
}

.tiu-copy-btn {
    padding: 8px 16px;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.tiu-copy-btn:hover {
    background-color: #135e96;
}

.tiu-copy-btn:active {
    background-color: #0a4b78;
}

.tiu-expiry-warning {
    margin: 12px 0;
    padding: 8px 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
    text-align: center;
}

.tiu-upload-another-btn {
    margin-top: 16px;
    padding: 10px 20px;
    background-color: #f0f0f1;
    color: #1d2327;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tiu-upload-another-btn:hover {
    background-color: #e0e0e1;
    border-color: #646970;
}

.tiu-error-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #fcf0f1;
    border: 1px solid #f1aeb5;
    border-radius: 8px;
}

.tiu-error-message h4 {
    margin: 0 0 12px 0;
    color: #d63384;
    font-size: 16px;
}

.tiu-error-message p {
    margin: 0 0 16px 0;
    color: #721c24;
    font-size: 14px;
}

.tiu-try-again-btn {
    padding: 8px 16px;
    background-color: #d63384;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.tiu-try-again-btn:hover {
    background-color: #b02a5b;
}

/* Responsividade */
@media (max-width: 768px) {
    .tiu-uploader-wrapper {
        margin: 10px;
    }
    
    .tiu-upload-area {
        padding: 30px 15px;
    }
    
    .tiu-url-input-group {
        flex-direction: column;
    }
    
    .tiu-copy-btn {
        width: 100%;
    }
}

/* Estados de loading */
.tiu-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tiu-loading .tiu-upload-content {
    opacity: 0.5;
}

/* Animações */
@keyframes tiu-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tiu-result-container,
.tiu-error-container {
    animation: tiu-fadeIn 0.3s ease;
}

/* Feedback visual para cópia */
.tiu-copy-success {
    background-color: #d1edff !important;
    color: #0073aa !important;
}

.tiu-copy-success::after {
    content: " ✓";
    font-weight: bold;
}
