 
.form-control.is-valid {
    border-color: #2d6a4f !important;
    background-color: #f6fff8 !important;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.12) !important;
}

/* ── INVALID INPUT ── */
.form-control.is-invalid {
    border-color: #e63946 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12) !important;
}

/* ── FIELD MESSAGE ── */
.demo-field-msg {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    padding-left: 2px;
    min-height: 16px;
    display: none;
}

    .demo-field-msg.show {
        display: block;
    }

    .demo-field-msg.msg-error {
        color: #e63946;
    }

    .demo-field-msg.msg-ok {
        color: #2d6a4f;
    }

/* ======================================
    TOASTER
    ====================================== */
#demo-toaster {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.demo-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    border-left: 4px solid;
    box-shadow: 0 6px 28px rgba(0,0,0,0.14);
    font-size: 13px;
    font-weight: 500;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    animation: dt-in 0.32s cubic-bezier(0.22,1,0.36,1) forwards;
}

    .demo-toast.dt-out {
        animation: dt-out 0.28s ease forwards;
    }

    .demo-toast.t-success {
        background: #d8f3dc;
        border-color: #2d6a4f;
        color: #1b4332;
    }

    .demo-toast.t-error {
        background: #ffe5e5;
        border-color: #e63946;
        color: #7f1d1d;
    }

    .demo-toast.t-info {
        background: #dde9f5;
        border-color: #457b9d;
        color: #1d3557;
    }

    .demo-toast.t-warning {
        background: #fff0e0;
        border-color: #e07a29;
        color: #7c2d12;
    }

.demo-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.demo-toast-body {
    flex: 1;
}

.demo-toast-title {
    font-weight: 700;
    font-size: 12.5px;
    margin-bottom: 2px;
}

.demo-toast-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.demo-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

    .demo-toast-close:hover {
        opacity: 1;
    }

.demo-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    animation: dt-bar 4.5s linear forwards;
}

.t-success .demo-toast-bar {
    background: #2d6a4f;
}

.t-error .demo-toast-bar {
    background: #e63946;
}

.t-info .demo-toast-bar {
    background: #457b9d;
}

.t-warning .demo-toast-bar {
    background: #e07a29;
}

@@keyframes dt-in {
    from {
        opacity: 0;
        transform: translateX(50px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@@keyframes dt-out {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(50px)
    }
}

@@keyframes dt-bar {
    from {
        width: 100%
    }

    to {
        width: 0%
    }
}

 
