/* ======================================
   Unified Notification System
   ====================================== */

/* Toast notifications - unified dark theme for all apps */
.toast {
    display: none;
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;   
    max-width: 550px;
    background: #222639;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

/* Toast variants */
.toast.success {
    background: #222639;
    border-left: 4px solid #10b981;
}

.toast.error {
    background: #222639;
    border-left: 4px solid #ef4444;
}

/* Remove all spacing from error toast content */
/* .toast.error span { */
    /* line-height: 1.1 !important; */
    /* display: inline !important; */
/* } */


/* Ultra-aggressive override for cards page - highest specificity */
body #toast.toast.error,
body div#toast.toast.error,
html body #toast.toast.error {
    min-height: 30px !important;
    max-height: 40px !important;
    line-height: 1.1 !important;
    font-size: 14px !important;
}

.toast.warning {
    background: #222639;
    border-left: 4px solid #f59e0b;
}

.toast.info {
    background: #222639;
    border-left: 4px solid #3b82f6;
}

/* Close button for toast */
.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: rgba(255, 255, 255, 1);
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast.show {
    animation: slideInDown 0.3s ease-out;
} 