/* Welcome modal open/close keyframe animations. */

@keyframes welcomeModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes welcomeModalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }

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

@keyframes welcomeModalFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes welcomeModalScaleOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
}

.modalBackdrop#welcomeModal {
    background: #0b0f19;
    /* Solid dark background to hide the app on first open */
}

.modalBackdrop#welcomeModal:not([hidden]) {
    animation: welcomeModalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modalBackdrop#welcomeModal:not([hidden]) .welcomeModal {
    animation: welcomeModalScaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modalBackdrop#welcomeModal.fadeOut {
    animation: welcomeModalFadeOut 0.4s ease forwards !important;
}

.modalBackdrop#welcomeModal.fadeOut .welcomeModal {
    animation: welcomeModalScaleOut 0.4s ease forwards !important;
}

/* Feature grid & card styling inside Welcome Modal */
.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 4px;
    margin-top: 16px;
}

.welcome-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: start;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    text-align: left;
}

.welcome-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
}

.welcome-card-icon {
    font-size: 20px;
    line-height: 1;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.welcome-card-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.welcome-card-icon.green {
    background: #dcfce7;
    color: #15803d;
}

.welcome-card-icon.purple {
    background: #faf5ff;
    color: #7e22ce;
}

.welcome-card-icon.orange {
    background: #fff7ed;
    color: #c2410c;
}

.welcome-card-icon.emerald {
    background: #f0fdf4;
    color: #16a34a;
}

.welcome-card-icon.indigo {
    background: #eff6ff;
    color: #1d4ed8;
}

.welcome-card-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.welcome-card-content p {
    font-size: 12.5px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}


