/* Custom styles for Francy */

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Processing dots animation */
@keyframes dots {
    0%, 20% {
        color: rgba(0, 0, 0, 0);
        text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0),
                     0.5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
        color: #3b82f6;
        text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0),
                     0.5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
        text-shadow: 0.25em 0 0 #3b82f6,
                     0.5em 0 0 rgba(0, 0, 0, 0);
    }
    80%, 100% {
        text-shadow: 0.25em 0 0 #3b82f6,
                     0.5em 0 0 #3b82f6;
    }
}

.processing-dots {
    font-family: monospace;
    font-size: 1rem;
    color: #3b82f6;
    text-align: center;
    margin-top: 0.5rem;
}

.processing-dots:after {
    content: "...";
    animation: dots 2s steps(5, end) infinite;
}

/* Drag and Drop Zone */
.drag-over {
    background-color: #EBF8FF !important;
    border-color: #3182CE !important;
}

/* File item styling */
.file-item {
    transition: all 0.2s ease;
}

.file-item:hover {
    transform: translateX(4px);
}

/* Success/Error states */
.success-bg {
    background-color: #F0FDF4;
    border-color: #86EFAC;
}

.error-bg {
    background-color: #FEF2F2;
    border-color: #FCA5A5;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Daily file cards */
.daily-card {
    transition: all 0.2s ease;
}

.daily-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Button states */
.btn-download {
    transition: all 0.2s ease;
}

.btn-download:hover {
    transform: scale(1.05);
}

/* History item */
.history-item {
    padding: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.history-item:hover {
    background-color: #F9FAFB;
    border-left-color: #3B82F6;
}

/* File type badges */
.file-badge-pdf {
    background-color: #FEE2E2;
    color: #991B1B;
}

.file-badge-txt {
    background-color: #DBEAFE;
    color: #1E3A8A;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-success {
    background-color: #10B981;
    color: white;
}

.toast-error {
    background-color: #EF4444;
    color: white;
}

.toast-info {
    background-color: #3B82F6;
    color: white;
}

/* Painel de Duplicados */
.bg-yellow-25 {
    background-color: #fffef7;
}

/* Animações para painel de duplicados */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.duplicates-panel-enter {
    animation: slideDown 0.3s ease-out;
}

/* Estilo para lista de duplicados */
.duplicate-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.duplicate-item:hover {
    background-color: #fef9e7;
    border-left-color: #f59e0b;
    transform: translateX(2px);
}

/* Badge de status para duplicados */
.duplicate-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.duplicate-badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.duplicate-badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}