/* ==========================================================================
   Messaging — Floating Chat Panel
   ========================================================================== */

/* ---- Değişkenler ---- */
:root {
    --msg-primary:    #00395e;
    --msg-sent-bg:    #00395e;
    --msg-recv-bg:    #e4e6eb;
    --msg-sent-text:  #ffffff;
    --msg-recv-text:  #050505;
    --msg-bg:         #ffffff;
    --msg-border:     #e0e0e0;
    --msg-text:       #050505;
    --msg-text-muted: #65676b;
    --msg-header-bg:  #00395e;
    --msg-header-text:#ffffff;
    --msg-hover-bg:   #f0f7ff;
    --msg-active-bg:  #ddeeff;
    --msg-radius-bubble: 18px;
    --msg-radius-panel:  10px;
    --msg-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
    --msg-transition: .25s ease;
}

/* ==========================================================================
   Floating Button
   ========================================================================== */
#msg-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00395e;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,57,94,.45);
    z-index: 9990;
    transition: transform var(--msg-transition), box-shadow var(--msg-transition);
}
#msg-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,57,94,.60);
}
#msg-float-btn svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}
#msg-float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e41e3f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    display: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ==========================================================================
   Panel — Outer Container
   ========================================================================== */
#msg-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 800px;
    height: 600px;
    border-radius: var(--msg-radius-panel);
    background: var(--msg-bg);
    box-shadow: var(--msg-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9991;
    border: 1px solid var(--msg-border);
    transition: opacity var(--msg-transition);
}
#msg-panel.open  { display: flex; }
#msg-panel.minimized { height: 44px !important; overflow: hidden; }
#msg-panel.maximized {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    border: none;
}

/* ==========================================================================
   Panel — Header (draggable)
   ========================================================================== */
#msg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    min-height: 44px;
    padding: 0 12px 0 16px;
    background: var(--msg-header-bg);
    cursor: grab;
    border-radius: var(--msg-radius-panel) var(--msg-radius-panel) 0 0;
    user-select: none;
}
#msg-panel-header:active { cursor: grabbing; }
.msg-panel-title {
    color: var(--msg-header-text);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.msg-panel-title svg { width: 16px; height: 16px; fill: #fff; opacity: .85; }
.msg-panel-controls {
    display: flex;
    gap: 4px;
}
.msg-panel-ctrl {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .15s;
    flex-shrink: 0;
}
.msg-panel-ctrl:hover { background: rgba(255,255,255,.25); }
.msg-panel-ctrl-close:hover { background: #e41e3f; }

/* ==========================================================================
   Panel — Body (two columns)
   ========================================================================== */
#msg-panel-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ---- Left: Conversation list ---- */
#msg-conv-panel {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid var(--msg-border);
    display: flex;
    flex-direction: column;
    background: #fafafa;
}
#msg-conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--msg-border);
}
#msg-conv-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--msg-text);
}
.msg-new-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--msg-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .15s;
}
.msg-new-btn:hover { background: #0070d8; }
/* Conversation search */
#msg-conv-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--msg-border);
    background: #fafafa;
}
#msg-conv-search-wrap .fa-search {
    color: var(--msg-text-muted);
    font-size: 13px;
    flex-shrink: 0;
}
#msg-conv-search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--msg-text);
    font-family: inherit;
}
#msg-conv-search::placeholder { color: var(--msg-text-muted); }

#msg-conv-list {
    flex: 1;
    overflow-y: auto;
}
#msg-conv-list::-webkit-scrollbar { width: 4px; }
#msg-conv-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* Conversation item */
.msg-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,.04);
    position: relative;
    transition: background var(--msg-transition);
}
.msg-conv-item:hover   { background: var(--msg-hover-bg); }
.msg-conv-item.active  { background: var(--msg-active-bg); }
.msg-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #c9d8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--msg-primary);
}
.msg-conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msg-conv-info { flex: 1; overflow: hidden; }
.msg-conv-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--msg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-conv-preview {
    font-size: 12px;
    color: var(--msg-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.msg-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.msg-conv-time {
    font-size: 11px;
    color: var(--msg-text-muted);
    white-space: nowrap;
}
.msg-conv-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--msg-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Right: Chat area ---- */
#msg-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--msg-bg);
    overflow: hidden;
}
#msg-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--msg-border);
    background: #fdfdfd;
    min-height: 56px;
}
#msg-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c9d8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--msg-primary);
    overflow: hidden;
    flex-shrink: 0;
}
#msg-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-chat-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--msg-text);
}
.msg-chat-status {
    font-size: 11.5px;
    color: var(--msg-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.msg-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #31a24c;
    display: inline-block;
}
#msg-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--msg-text-muted);
    font-size: 14px;
    gap: 10px;
}
#msg-chat-empty svg { width: 48px; height: 48px; opacity: .35; }

/* Message container */
#msg-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
#msg-messages::-webkit-scrollbar { width: 4px; }
#msg-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* Message row */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 4px;
}
.msg-row.sent  { flex-direction: row-reverse; }
.msg-row.received { flex-direction: row; }
.msg-row-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #c9d8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--msg-primary);
    flex-shrink: 0;
}
.msg-bubble {
    max-width: 68%;
    padding: 8px 12px;
    word-break: break-word;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
}
.msg-row.sent .msg-bubble {
    background: var(--msg-sent-bg);
    color: var(--msg-sent-text);
    border-radius: var(--msg-radius-bubble) var(--msg-radius-bubble) 4px var(--msg-radius-bubble);
}
.msg-row.received .msg-bubble {
    background: var(--msg-recv-bg);
    color: var(--msg-recv-text);
    border-radius: var(--msg-radius-bubble) var(--msg-radius-bubble) var(--msg-radius-bubble) 4px;
}
.msg-bubble .msg-link {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
    opacity: 0.85;
}
.msg-bubble .msg-link:hover { opacity: 1; }
.msg-time {
    font-size: 10.5px;
    opacity: .72;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.msg-row.sent .msg-time { justify-content: flex-end; }
.msg-tick { font-size: 11px; color: rgba(255,255,255,.45); }   /* gri: gönderildi */
.msg-tick.read { color: #09e5ab; }                             /* yeşil: okundu */

/* Load more */
#msg-load-more {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: var(--msg-primary);
    cursor: pointer;
    display: none;
}
#msg-load-more:hover { text-decoration: underline; }

/* Typing indicator */
#msg-typing {
    padding: 0 14px 6px;
    font-size: 12px;
    color: var(--msg-text-muted);
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--msg-text-muted);
    animation: msgBlink 1.3s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes msgBlink {
    0%, 80%, 100% { opacity: .2; transform: scale(.85); }
    40%           { opacity: 1;  transform: scale(1); }
}

/* Attachment preview bar */
#msg-attach-preview {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0f7ff;
    border-top: 1px solid var(--msg-border);
    font-size: 12px;
    color: var(--msg-text-muted);
}
#msg-attach-preview .fa-paperclip { color: var(--msg-primary); }
#msg-attach-name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#msg-attach-preview button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--msg-text-muted);
    font-size: 13px;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
}
#msg-attach-preview button:hover { color: #e41e3f; }

/* Input area */
#msg-input-area {
    display: none;
    padding: 8px 10px;
    border-top: 1px solid var(--msg-border);
    gap: 6px;
    align-items: flex-end;
    background: #fdfdfd;
}
#msg-input {
    flex: 1;
    border: 1px solid var(--msg-border);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13.5px;
    resize: none;
    outline: none;
    overflow-y: auto;
    max-height: 90px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color .15s;
}
#msg-input:focus { border-color: var(--msg-primary); }
.msg-input-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
}
.msg-input-btn:hover { transform: scale(1.1); }
#msg-send-btn {
    background: var(--msg-primary);
    color: #fff;
}
#msg-send-btn:disabled { background: #b0c4d8; cursor: default; transform: none; }
#msg-attach-btn {
    background: #f0f2f5;
    color: var(--msg-text-muted);
    font-size: 16px;
}
#msg-attach-btn:hover { background: #e4e6eb; }

/* ==========================================================================
   Skeleton loading
   ========================================================================== */
.msg-skeleton { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.msg-skeleton-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: msgShimmer 1.4s infinite;
    flex-shrink: 0;
}
.msg-skeleton-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.msg-skeleton-line {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: msgShimmer 1.4s infinite;
}
.msg-skeleton-line.wide  { width: 70%; }
.msg-skeleton-line.narrow { width: 45%; }
@keyframes msgShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Eligible users dropdown (yeni mesaj)
   ========================================================================== */
#msg-eligible-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid var(--msg-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    display: none;
    z-index: 10;
    flex-direction: column;
    overflow: hidden;
    max-height: 320px;
}
#msg-eligible-dropdown.open { display: flex; }
.msg-eligible-search {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid var(--msg-border);
    outline: none;
    font-size: 13px;
}
#msg-eligible-list { overflow-y: auto; }
.msg-eligible-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background .12s;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.msg-eligible-item:hover { background: var(--msg-hover-bg); }
.msg-eligible-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #c9d8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--msg-primary);
    flex-shrink: 0;
    overflow: hidden;
}
.msg-eligible-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.msg-eligible-info .name  { font-weight: 600; color: var(--msg-text); }
.msg-eligible-info .email { font-size: 11px; color: var(--msg-text-muted); margin-top: 2px; }
.msg-eligible-info .rel   { font-size: 11px; color: var(--msg-text-muted); }

/* ==========================================================================
   File attachment preview
   ========================================================================== */
#msg-attach-input { display: none; }
.msg-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    opacity: .85;
    text-decoration: none;
    font-size: 12px;
}
.msg-attachment-link:hover { opacity: 1; }
.msg-attachment-thumb {
    display: block;
    margin-top: 6px;
    line-height: 0;
}
.msg-attachment-thumb img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid rgba(255,255,255,.15);
}

/* Back button (mobile-only, hidden on desktop) */
#msg-back-btn {
    display: none;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--msg-primary);
    font-size: 16px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background .15s;
}
#msg-back-btn:hover { background: #f0f2f5; }

/* ==========================================================================
   Mobile Responsive (≤768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Floating button — safe-area aware */
    #msg-float-btn {
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: 16px;
        width: 60px;
        height: 60px;
    }

    /* Panel — full screen */
    #msg-panel {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
        border: none;
    }

    /* No drag cursor on mobile */
    #msg-panel-header        { cursor: default; border-radius: 0; }
    #msg-panel-header:active { cursor: default; }

    /* Hide minimize and maximize buttons (panel is already full-screen) */
    #msg-ctrl-minimize,
    #msg-ctrl-max { display: none; }

    /* Body — two panels stacked for slide animation */
    #msg-panel-body {
        position: relative;
        overflow: hidden;
    }

    #msg-conv-panel {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        border-right: none;
        transform: translateX(0);
        transition: transform .3s ease;
    }

    #msg-chat-panel {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(100%);
        transition: transform .3s ease;
    }

    /* view-messages: slide conversation list out, slide chat panel in */
    #msg-panel.view-messages #msg-conv-panel { transform: translateX(-100%); }
    #msg-panel.view-messages #msg-chat-panel { transform: translateX(0); }

    /* Back button — show on mobile */
    #msg-back-btn { display: flex !important; }

    /* Touch-friendly conversation items */
    .msg-conv-item   { padding: 14px 16px; min-height: 72px; }
    .msg-conv-avatar { width: 46px; height: 46px; }

    /* Larger bubbles */
    .msg-bubble { max-width: 85%; font-size: 15px; }

    /* Input area — safe area inset */
    #msg-input-area {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    /* font-size 16px prevents iOS auto-zoom on focus */
    #msg-input { font-size: 16px; }

    /* Touch-friendly input buttons */
    .msg-input-btn { width: 44px; height: 44px; }

    /* Eligible dropdown — full-width bottom sheet on mobile */
    #msg-eligible-dropdown {
        position: fixed;
        top: auto;
        right: 0;
        bottom: calc(56px + env(safe-area-inset-bottom));
        left: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 50vh;
    }

    /* Prevent iOS bounce on message scroll */
    #msg-messages {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* ==========================================================================
   Chat Nudge — Teşvik Baloncuğu
   ========================================================================== */
#msg-nudge {
    position: fixed;
    bottom: 96px;
    right: 12px;
    width: 208px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(0, 57, 94, .22), 0 2px 8px rgba(0,0,0,.10);
    border: 1.5px solid rgba(0, 57, 94, .10);
    padding: 13px 32px 12px 14px;
    z-index: 9989;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    /* ok üçgeni aşağıya, butona işaret eder */
    --nudge-arrow-right: 26px;
}
#msg-nudge.msg-nudge-show {
    display: flex;
    animation: nudge-enter .45s cubic-bezier(.34, 1.56, .64, 1) forwards,
               nudge-float 3.2s ease-in-out .45s infinite;
}
#msg-nudge.msg-nudge-hide {
    animation: nudge-exit .28s ease forwards !important;
}

/* Ok — baloncuğun altına konumlandırılmış üçgen */
#msg-nudge::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: var(--nudge-arrow-right);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #fff;
    filter: drop-shadow(0 2px 2px rgba(0,57,94,.12));
}

/* Yazı */
.msg-nudge-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--msg-text);
    line-height: 1.45;
    margin: 0;
}
.msg-nudge-text strong {
    color: var(--msg-primary);
}

/* Kapat butonu */
#msg-nudge-dismiss {
    position: absolute;
    top: 7px;
    right: 9px;
    background: none;
    border: none;
    font-size: 11px;
    color: var(--msg-text-muted);
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 50%;
    line-height: 1;
    transition: background .15s, color .15s;
}
#msg-nudge-dismiss:hover {
    background: #f0f0f0;
    color: var(--msg-text);
}

/* Animasyonlar */
@keyframes nudge-enter {
    from { opacity: 0; transform: translateY(18px) scale(.90); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes nudge-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes nudge-exit {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(.93); }
}

/* Mobil: konumu butona uyarla */
@media screen and (max-width: 768px) {
    #msg-nudge {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 8px;
        width: 190px;
    }
}

/* ================================================================
   Notifications (Toast)
   ================================================================ */
#msg-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.msg-notification {
    min-width: 280px;
    max-width: 420px;
    padding: 14px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid #ddd;
}

.msg-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.msg-notification-success {
    border-left-color: #28a745;
    background: #f0fdf4;
    color: #166534;
}

.msg-notification-error {
    border-left-color: #dc3545;
    background: #fef2f2;
    color: #991b1b;
}

.msg-notification-warning {
    border-left-color: #ffc107;
    background: #fffbeb;
    color: #92400e;
}

.msg-notification-info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
    color: #075985;
}

@media screen and (max-width: 768px) {
    #msg-notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .msg-notification {
        min-width: unset;
        max-width: unset;
    }
}
