.preview-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    position: relative;
    width: fit-content;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

/* Estilos específicos para o documento com foto */
#frontPreviewContent .preview-wrapper,
#backPreviewContent .preview-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    position: relative;
    width: fit-content;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#frontImagePreview,
#backImagePreview {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin: 0;
}

#frontPreviewContent .remove-file,
#backPreviewContent .remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#frontPreviewContent .preview-file,
#backPreviewContent .preview-file {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.preview-file {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#target-deficiencia,
.preview-thumb {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin: 0;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.highlight {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.upload-text {
    margin: 10px 0;
    color: #6c757d;
}

.upload-types {
    font-size: 0.875rem;
    color: #adb5bd;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 10px;
    display: none;
}

.error-message i {
    margin-right: 5px;
}

#deficienciaPreviewContent .preview-wrapper {
    min-height: auto;
    padding: 8px;
}

#deficienciaPreviewContent .preview-file {
    position: relative;
}

#deficienciaImagePreview {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

#deficienciaPdfPreview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    width: 100%;
    max-width: 400px;
}

#deficienciaPdfPreview i {
    font-size: 32px;
    color: #dc3545;
    flex-shrink: 0;
}

#deficienciaPdfName {
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-file {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: 15px;
    background-color: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-file i {
    font-size: 16px;
}

.btn-remove-file:hover {
    background-color: #dc3545;
    color: white;
}

.password-strength {
    margin-top: 5px;
    font-size: 14px;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}

.generated-password-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.generated-password {
    font-family: monospace;
    font-size: 14px;
    color: #495057;
}

.copy-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #5a6268;
}

.generate-button {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.generate-button:hover {
    background-color: #218838;
}

.error-message-container {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    color: #842029;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease-in;
}

.error-message-container .btn-close {
    padding: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

.error-message-container .btn-close:hover {
    opacity: 1;
}

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

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

.error-message-container.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.cs-intputwrap input[type="file"] {
    padding-left: 2.5rem;  /* Espaço para o ícone */
    height: 53px;  /* Mesma altura dos outros inputs */
    line-height: 30px;
    color: #495057;
    font-size: 0.9rem;
    background-color: #f9f9f9;
}

.cs-intputwrap input[type="file"]::-webkit-file-upload-button {
    display: none;
}

.cs-intputwrap input[type="file"]::file-selector-button {
    display: none;
}

.cs-intputwrap {
    position: relative;
}

.cs-intputwrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
}

.alert-subtle {
    position: relative;
    padding: 12px 15px;
    margin-top: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alert-subtle .alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-subtle i {
    font-size: 16px;
}

.close-alert {
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-alert:hover {
    opacity: 1;
}

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

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

.alert-subtle.hiding {
    animation: slideOut 0.3s ease-in-out forwards;
} 