/* Custom styles */
body {
    font-family: system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

/* Custom animations */
.hover\:scale-105:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom transitions */
.transition-custom {
    transition: all 0.3s ease;
}

/* Form styles */
input:focus, textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Button hover effects */
.btn-primary:hover {
    filter: brightness(1.1);
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Flash Messages */
.flash-message {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

.flash-message.dismissed {
    animation: fadeOut 0.5s ease-in-out forwards;
}

/* Animations */
@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);
        height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Enhanced Flash Messages Styling */
.flash-message {
    animation: slideInFromTop 0.3s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.flash-message:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.flash-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
}

.flash-progress-bar {
    background: linear-gradient(90deg, currentColor 0%, transparent 100%);
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Slide in animation */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure messages stack properly on small screens */
@media (max-width: 640px) {
    #flash-messages {
        top: 1rem;
        width: 90%;
        max-width: 100%;
    }
    .flash-message {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
    .flash-message svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Dark mode support for flash messages */
@media (prefers-color-scheme: dark) {
    .flash-message {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }
    
    .flash-message:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    }
}