/* Custom styles for Peppol.Tools */

/* Smooth fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Tool card initial state for animation */
.tool-card {
    opacity: 0;
    transform: translateY(20px);
}

.tool-card.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #e8f4fc;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2d5a87;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* Language button active state */
.lang-btn.active {
    background-color: #4a90d9;
    color: white;
}

/* Loading spinner */
.spinner {
    border: 3px solid #e8f4fc;
    border-top: 3px solid #4a90d9;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Result card styles */
.result-card {
    transition: all 0.3s ease;
}

.result-card.success {
    border-left: 4px solid #10b981;
}

.result-card.error {
    border-left: 4px solid #ef4444;
}

.result-card.not-found {
    border-left: 4px solid #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
}
