/* Custom styling built on top of Tailwind */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glassmorphism {
    background: rgba(44, 16, 16, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(231, 76, 60, 0.3);
    border-left: 1px solid rgba(231, 76, 60, 0.2);
}

/* Custom Scrollbar styled for dark crimson theme */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 8, 8, 0.5);
    border-radius: 4px;
}

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

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

/* Selection */
::selection {
    background: rgba(231, 76, 60, 0.3);
    color: #FDF2F2;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Button Group Active State */
.type-btn.active {
    background: #E74C3C;
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

/* Word break for code */
.word-break {
    word-break: break-all;
}

/* File Drop Area */
.file-drop-area.drag-over {
    background: rgba(61, 21, 21, 0.8);
    border-color: #E74C3C;
}

/* Toast animations */
.toast-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}