/* ─── Smart Tips — Banner, Modal, Card ─── */

/* Banner: slim bar at top of content area */
.smart-tip-banner {
    margin-bottom: 0;
    border-radius: 0;
    animation: smartTipSlideDown 0.3s ease-out;
}

/* Card: fixed bottom-right floating card */
.smart-tip-card {
    animation: smartTipSlideUp 0.3s ease-out;
}

/* Modal: standard Bootstrap modal with custom tweaks */
.smart-tip-modal .modal-dialog {
    max-width: 600px;
}

.smart-tip-modal .modal-footer {
    justify-content: flex-start;
}

/* Hide animation */
.smart-tip-hiding {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Status message area inside cards */
.smart-tip-status {
    border-radius: 4px;
    padding: 4px 8px;
}

/* ─── Animations ─── */
@keyframes smartTipSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes smartTipSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
    /* Card becomes full-width bottom sheet on mobile */
    .smart-tip-card {
        max-width: 100% !important;
        left: 0;
        right: 0;
        padding: 0.5rem !important;
    }

    .smart-tip-card .card-body {
        padding: 0.75rem !important;
    }

    .smart-tip-card .d-flex.gap-2 {
        flex-direction: column;
    }

    .smart-tip-card .d-flex.gap-2 .btn {
        width: 100%;
    }

    .smart-tip-card .d-flex.gap-2 .ms-auto {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 0.25rem;
    }

    /* Banner wraps on mobile */
    .smart-tip-banner {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .smart-tip-banner .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    /* Modal goes near full-screen on mobile */
    .smart-tip-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .smart-tip-modal .modal-footer {
        flex-direction: column;
    }

    .smart-tip-modal .modal-footer .btn {
        width: 100%;
    }
}
