/* ===============================================================
   🔔 FLOWBITE OFFICIAL TOAST NOTIFICATION STYLING
   Source: https://flowbite.com/docs/components/toast/
   Designed for BMC ERP — 100% Stable, Responsive & Dark-Teal Matched
   =============================================================== */

.flowbite-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.flowbite-toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 320px;
    max-width: 420px;
    padding: 13px 16px;
    border-radius: 12px;
    box-sizing: border-box;
    background: #08222a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.65), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Signika", sans-serif;
    animation: flowbiteSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

@keyframes flowbiteSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.flowbite-toast-item.flowbite-toast-exit {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

/* 🔴 Flowbite Toast Danger / Error */
.flowbite-toast-danger,
.flowbite-toast-error {
    background: linear-gradient(135deg, #092c35 0%, #061e24 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(239, 68, 68, 0.18) !important;
}
.flowbite-toast-danger .flowbite-toast-icon-wrap,
.flowbite-toast-error .flowbite-toast-icon-wrap {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 🟢 Flowbite Toast Success */
.flowbite-toast-success {
    background: linear-gradient(135deg, #092c35 0%, #061e24 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(16, 185, 129, 0.18) !important;
}
.flowbite-toast-success .flowbite-toast-icon-wrap {
    color: #10b981;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 🟡 Flowbite Toast Warning */
.flowbite-toast-warning {
    background: linear-gradient(135deg, #092c35 0%, #061e24 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(245, 158, 11, 0.18) !important;
}
.flowbite-toast-warning .flowbite-toast-icon-wrap {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 🔵 Flowbite Toast Info */
.flowbite-toast-info {
    background: linear-gradient(135deg, #092c35 0%, #061e24 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.45) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(14, 165, 233, 0.18) !important;
}
.flowbite-toast-info .flowbite-toast-icon-wrap {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Icon Container */
.flowbite-toast-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.flowbite-toast-icon-wrap svg {
    width: 18px;
    height: 18px;
}

/* Message Text */
.flowbite-toast-content {
    margin-left: 12px;
    margin-right: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #f8fafc;
    line-height: 1.4;
    flex: 1;
    text-align: left;
    letter-spacing: 0.15px;
}

/* Close Button */
.flowbite-toast-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0;
}
.flowbite-toast-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.flowbite-toast-close-btn svg {
    width: 14px;
    height: 14px;
}

/* 📱 Mobile View (Full Width Banner Style at Top) */
@media (max-width: 576px) {
    .flowbite-toast-container {
        top: 14px !important;
        right: 14px !important;
        left: 14px !important;
    }
    .flowbite-toast-item {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
