/* Custom Utilities beyond Tailwind */

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html.dark .glass-card {
    background: var(--tw-colors-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    transform: translateY(-2px);
}

.mod-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

html.dark .mod-badge {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.mod-badge.active {
    background: var(--tw-colors-brand-50);
    border-color: var(--tw-colors-brand-200);
    color: var(--tw-colors-brand-700);
}

html.dark .mod-badge.active {
    background: var(--tw-colors-brand-900);
    border-color: var(--tw-colors-brand-700);
    color: var(--tw-colors-brand-100);
}

.mod-badge .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    /* gray-300 */
    transition: all 0.2s;
}

html.dark .mod-badge .indicator {
    background: #4b5563;
    /* gray-600 */
}

.mod-badge.active .indicator {
    background: var(--tw-colors-brand-500);
    box-shadow: 0 0 10px var(--tw-colors-brand-500);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

/* Custom Scrollbar for history */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    /* gray-400 */
    border-radius: 2px;
}

html.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.5);
    /* gray-600 */
}