/* Custom styles for Matrimony Extractor */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Drop zone hover effect */
#dropZone {
    transition: all 0.3s ease;
}

#dropZone:hover {
    border-color: #ec4899;
    background-color: #fdf2f8;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Smooth transitions */
button {
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
}

/* Success/Error messages animation */
#successMessage,
#errorMessage {
    animation: slideIn 0.3s ease;
}

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

/* Scrollbar styling */
#extractedText::-webkit-scrollbar {
    width: 8px;
}

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

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

#extractedText::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Field mapping inputs */
#fieldMapping input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#fieldMapping input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Button loading state */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* File preview animation */
#filePreview {
    animation: fadeIn 0.3s ease;
}

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