/* ============================================================
   NOTIFICATIONS.CSS
   Toast & Inline Notification System
   ============================================================ */

/* ----------------------------------------------------------
   TOAST CONTAINER
   Fixed overlay anchored to top-right of viewport
   ---------------------------------------------------------- */
#toast-container {
    position: fixed;
    top: 140px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* ----------------------------------------------------------
   TOAST ELEMENT
   ---------------------------------------------------------- */
.toast {
    background: white;
	position: relative; 
    padding: 16px 40px 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
	margin-left: 20px; 
    border-left: 4px solid #0084c9;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ----------------------------------------------------------
   TOAST INTERNAL ELEMENTS
   ---------------------------------------------------------- */
.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #595959;
}

.toast-close {
	position: absolute; 
	top: 16px; 
	right: 16px; 
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: #595959;
}

/* ----------------------------------------------------------
   TOAST TYPE COLORS
   ---------------------------------------------------------- */
.toast.success { border-left-color: #00db6d; }
.toast.success .toast-icon { color: #00db6d; }

.toast.info { border-left-color: #0084c9; }
.toast.info .toast-icon { color: #0084c9; }

.toast.warning { border-left-color: #ffec0c; }
.toast.warning .toast-icon { color: #d4c000; }

.toast.error { border-left-color: #e74c3c; }
.toast.error .toast-icon { color: #e74c3c; }

/* ----------------------------------------------------------
   TOAST RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    /*#toast-container {
        right: 10px;
        left: 10px;
    }*/

    .toast {
        min-width: auto;
    }
}


/* ============================================================
   INLINE NOTIFICATION
   Renders inside the content flow at a target location
   ============================================================ */
.inline-notification {
	position: relative; 
    padding: 18px 40px 18px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: inlineSlideDown 0.3s ease forwards;
}

.inline-notification.removing {
    animation: inlineSlideUp 0.3s ease forwards;
}

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

@keyframes inlineSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 15px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ----------------------------------------------------------
   INLINE NOTIFICATION INTERNAL ELEMENTS
   ---------------------------------------------------------- */
.inline-notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.inline-notification-content {
    flex: 1;
}

.inline-notification-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.inline-notification-message {
    font-size: 14px;
    line-height: 1.6;
}

.inline-notification-close {
    position: absolute; 
	top: 18px; 
	right: 16px; 
	background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.inline-notification-close:hover {
    opacity: 1;
}

/* ----------------------------------------------------------
   CENTERED MODE
   Centers icon and text within inline notifications.
   ---------------------------------------------------------- */
.inline-notification.centered {
    justify-content: center;
}

.inline-notification.centered .inline-notification-content {
    flex: initial;
    text-align: center;
}

/* ----------------------------------------------------------
   INLINE NOTIFICATION TYPE COLORS
   ---------------------------------------------------------- */

/* Success */
.inline-notification.success {
    background: #e8f7f0;
    border-left: 4px solid #00db6d;
}
.inline-notification.success .inline-notification-icon { color: #00db6d; }
.inline-notification.success .inline-notification-title { color: #00a884; }
.inline-notification.success .inline-notification-message { color: #007a5e; }

/* Info */
.inline-notification.info {
    background: #e8f4fb;
    border-left: 4px solid #0084c9;
}
.inline-notification.info .inline-notification-icon { color: #0084c9; }
.inline-notification.info .inline-notification-title { color: #0084c9; }
.inline-notification.info .inline-notification-message { color: #006699; }

/* Warning */
.inline-notification.warning {
    background: #fffbeb;
    border-left: 4px solid #ffec0c;
}
.inline-notification.warning .inline-notification-icon { color: #d4c000; }
.inline-notification.warning .inline-notification-title { color: #b39e00; }
.inline-notification.warning .inline-notification-message { color: #8a7900; }

/* Error */
.inline-notification.error {
    background: #fef2f2;
    border-left: 4px solid #e74c3c;
}
.inline-notification.error .inline-notification-icon { color: #e74c3c; }
.inline-notification.error .inline-notification-title { color: #c0392b; }
.inline-notification.error .inline-notification-message { color: #a93226; }

/* ----------------------------------------------------------
   BANNER MODE
   Full-width, flush variant of inline notifications.
   No rounding, no shadow, no margin, no border-left.
   ---------------------------------------------------------- */
.inline-notification.banner {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    justify-content: center;
}

.inline-notification.banner.success { border-bottom-color: #00db6d; }
.inline-notification.banner.info    { border-bottom-color: #0084c9; }
.inline-notification.banner.warning { border-bottom-color: #ffec0c; }
.inline-notification.banner.error   { border-bottom-color: #e74c3c; }

/* Banner collapse animation override */
.inline-notification.banner.removing {
    animation: bannerSlideUp 0.3s ease forwards;
}

@keyframes bannerSlideUp {
    from {
        opacity: 1;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    to {
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ----------------------------------------------------------
   NOTIFICATION LINK
   Rendered as a separate element below the message text.
   Inherits type color from the parent notification.
   ---------------------------------------------------------- */
.notification-link {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.notification-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Toast link colors */
.toast .notification-link { color: #0084c9; }
.toast.success .notification-link { color: #00a884; }
.toast.warning .notification-link { color: #b39e00; }
.toast.error .notification-link { color: #c0392b; }

/* Inline link colors – inherit from type */
.inline-notification.success .notification-link { color: #00a884; }
.inline-notification.info .notification-link { color: #0084c9; }
.inline-notification.warning .notification-link { color: #b39e00; }
.inline-notification.error .notification-link { color: #c0392b; }

/* ----------------------------------------------------------
   CLICKABLE NOTIFICATION
   Entire notification acts as a link.
   ---------------------------------------------------------- */
.notification-clickable {
    cursor: pointer;
}

.notification-clickable:hover {
    opacity: 0.92;
}

/* Subtle right arrow hint for clickable banners */
.inline-notification.banner.notification-clickable::after {
    content: '→';
    font-size: 18px;
    margin-left: 10px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.inline-notification.banner.notification-clickable:hover::after {
    opacity: 1;
    transform: translateX(4px);
}