/* Custom refinements atop Tailwind */

html {
    scroll-behavior: smooth;
}

:root {
    color-scheme: light;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgb(226 232 240);
    color: rgb(71 85 105);
    background-color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.2);
}

.filter-chip.active,
.filter-chip:hover {
    border-color: #0f4c81;
    color: #0f4c81;
    background-color: rgba(56, 189, 248, 0.12);
    box-shadow: 0 14px 30px -18px rgba(15, 76, 129, 0.55);
}

#moduleGrid .module-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#moduleGrid .module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -20px rgba(15, 76, 129, 0.35);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 9999px;
    background-color: rgb(248 250 252);
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    color: rgb(71 85 105);
}

.tag-badge .dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #fcd34d;
}

.quick-tag {
    border: 1px solid rgba(148, 163, 184, 0.55);
    background-color: rgba(248, 250, 252, 0.75);
    color: rgb(71 85 105);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.quick-tag:hover {
    border-color: #0f4c81;
    color: #0f4c81;
    background-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 12px 28px -18px rgba(15, 76, 129, 0.45);
}

.toast-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast-message {
    min-width: 240px;
    max-width: 320px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 20px 45px -25px rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: toast-in 0.28s ease forwards;
}

.toast-message .indicator {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.25rem;
    border-radius: 9999px;
    background-color: #fcd34d;
    flex-shrink: 0;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
}

@media (max-width: 768px) {
    nav .flex.items-center.gap-4 {
        width: 100%;
        justify-content: flex-start;
        margin-top: 1.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

