/* =========================================================
   THE DYNASTY — LUXURY TOAST NOTIFICATION STYLES
   ========================================================= */

#td-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: calc(100% - 32px);
    max-width: 420px;
    pointer-events: none;
    box-sizing: border-box;
}

.td-toast {
    position: relative;
    pointer-events: auto;
    background: #ffffff;
    color: #2b2b2b;
    border: 1px solid #EAE2D0;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;

    /* Instant Appearance: No entry animation */
    transform: translateY(0);
    opacity: 1;
}

/* Exit Animation State: Move upward and fade out */
.td-toast.td-toast-hide {
    transform: translateY(-25px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.td-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.td-toast-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.td-toast-message {
    word-break: break-word;
}

.td-toast-close {
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    font-size: 1.25rem !important;
    cursor: pointer;
    padding: 0 4px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.td-toast-close:hover {
    color: #111 !important;
    background: transparent !important;
}

/* --- Notification Type Themes --- */
/* Success: Maroon & Gold Luxury Theme */
.td-toast-success {
    border-left: 4px solid #832422;
    background: #FCFBF7;
}
.td-toast-success .td-toast-icon {
    color: #832422;
}

/* Error: Deep Red Accent Theme */
.td-toast-error {
    border-left: 4px solid #c92a2a;
    background: #FFF9F9;
}
.td-toast-error .td-toast-icon {
    color: #c92a2a;
}

/* Warning: Amber Accent Theme */
.td-toast-warning,
.td-toast-warn {
    border-left: 4px solid #d97706;
    background: #FFFDF5;
}
.td-toast-warning .td-toast-icon,
.td-toast-warn .td-toast-icon {
    color: #d97706;
}

/* Info: Neutral Maroon Theme */
.td-toast-info {
    border-left: 4px solid #555555;
    background: #FAFAFA;
}
.td-toast-info .td-toast-icon {
    color: #555555;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #td-toast-container {
        top: 14px;
        width: calc(100% - 24px);
    }
    .td-toast {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .td-toast-icon {
        font-size: 1.2rem;
    }
}
