/*
 * KaamMitra shared footer UI styles
 *
 * Moved out of the module template so it stays readable:
 *   template/km_common/km_footer_assets.twig
 *     - #km-toast-container / .km-custom-toast   toast notifications
 *     - .km-modal-*                              lightweight modals
 * Linked from common/header.twig.
 */
    #km-toast-container {
        position: fixed;
        top: 90px;
        right: 20px;
        z-index: 100000;
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 360px;
        width: calc(100% - 40px)
    }

    .km-custom-toast {
        position: relative;
        display: flex;
        align-items: flex-start;
        padding: 15px 20px 18px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 38px rgba(3, 68, 43, .16);
        border: 1px solid #dbeee4;
        transform: translateX(120%);
        opacity: 0;
        transition: all .35s cubic-bezier(.165, .84, .44, 1);
        pointer-events: auto;
        overflow: hidden
    }

    .km-custom-toast.show {
        transform: translateX(0);
        opacity: 1
    }

    .km-toast-icon-wrapper {
        margin-right: 14px;
        margin-top: 3px;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .km-toast-content-wrapper {
        flex: 1;
        padding-right: 15px
    }

    .km-toast-heading {
        font-weight: 900;
        margin: 0 0 5px;
        color: #06452e;
        font-size: 15px
    }

    .km-toast-desc {
        color: #53685d;
        font-size: 13px;
        line-height: 1.5;
        margin: 0
    }

    .km-toast-close {
        position: absolute;
        top: 12px;
        right: 15px;
        color: #94a3b8;
        font-size: 18px;
        cursor: pointer;
        line-height: 1;
        font-weight: 700
    }

    .km-toast-close:hover {
        color: #06452e
    }

    .km-toast-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px;
        width: 100%
    }

    .km-custom-toast.success { border-left: 6px solid #057347 }
    .km-custom-toast.success .km-toast-icon-wrapper,
    .km-custom-toast.success .km-toast-progress { color: #057347; background: #057347 }
    .km-custom-toast.error { border-left: 6px solid #e0483c }
    .km-custom-toast.error .km-toast-icon-wrapper,
    .km-custom-toast.error .km-toast-progress { color: #e0483c; background: #e0483c }
    .km-custom-toast.warning { border-left: 6px solid #f59f00 }
    .km-custom-toast.warning .km-toast-icon-wrapper,
    .km-custom-toast.warning .km-toast-progress { color: #f59f00; background: #f59f00 }
    .km-custom-toast.info { border-left: 6px solid #1f83f2 }
    .km-custom-toast.info .km-toast-icon-wrapper,
    .km-custom-toast.info .km-toast-progress { color: #1f83f2; background: #1f83f2 }

    .km-toast-btn-link {
        display: inline-block;
        margin-top: 10px;
        padding: 7px 16px;
        background: linear-gradient(135deg, #ff7a18, #ff9d24);
        color: #fff !important;
        text-decoration: none;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 900
    }

    /* Lightweight modals for themes without Bootstrap */
    .km-modal-open {
        overflow: hidden
    }

    .km-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(4, 40, 27, .55);
        z-index: 99998;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 40px 16px
    }

    .km-modal-card {
        width: 100%;
        max-width: 520px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 24px 60px rgba(3, 68, 43, .3);
        overflow: hidden;
        animation: kmModalIn .25s ease
    }

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

    .km-modal-card .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e3f0e9;
        background: #f4fbf6
    }

    .km-modal-card .modal-title {
        margin: 0;
        color: #06452e;
        font-size: 18px;
        font-weight: 900
    }

    .km-modal-card .modal-body {
        padding: 20px;
        max-height: 70vh;
        overflow-y: auto
    }

    .km-modal-card .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 14px 20px;
        border-top: 1px solid #e3f0e9;
        background: #fbfefc
    }

    .km-modal-card .close {
        background: transparent;
        border: 0;
        font-size: 22px;
        line-height: 1;
        color: #53685d;
        cursor: pointer;
        padding: 0
    }

    .km-modal-card .form-control {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #bcd8cb;
        border-radius: 10px;
        font: 14px 'Nunito Sans', sans-serif;
        margin-top: 4px
    }

    .km-modal-card .form-group {
        margin-bottom: 14px
    }

    .km-modal-card label {
        font-weight: 800;
        color: #06452e;
        font-size: 13px
    }

    .km-modal-card .btn {
        border: 0;
        border-radius: 22px;
        padding: 9px 20px;
        font-weight: 900;
        cursor: pointer
    }

    .km-modal-card .btn-default {
        background: #edf9f2;
        color: #07583b;
        border: 1px solid #c7e4d4
    }

    .km-modal-card .btn-success,
    .km-modal-card .btn-primary {
        background: #006642;
        color: #fff
    }
