/* Base styles and custom scrollbar for pre element */

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155; /* tailwind slate-700 */
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #475569; /* tailwind slate-600 */
}

/* Animations for component mounting */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Preview Tabs Custom Styles */
#yaml-preview {
    min-height: 350px;
    flex-grow: 1;
}

.preview-tab.active {
    background-color: white;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Input focus ring shadow overrides if needed */
.focus-ring {
    @apply focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500 outline-none transition-all;
}

/* Make sure textarea resizes nicely */
textarea {
    resize: vertical;
}
