/* Toast Notifications Styles */

#swi-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    max-width: 90vw;
}

.swi-toast {
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid #444;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 12px 15px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.swi-toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.swi-toast-hiding {
    transform: translateX(110%);
    opacity: 0;
}

.swi-toast-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swi-toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.swi-toast-close {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.swi-toast-close:hover {
    color: #333;
}

/* Toast Types */
.swi-toast-error {
    border-left-color: #dc3232;
}

.swi-toast-error .swi-toast-icon {
    color: #dc3232;
}

.swi-toast-warning {
    border-left-color: #f0b849;
}

.swi-toast-warning .swi-toast-icon {
    color: #f0b849;
}

.swi-toast-success {
    border-left-color: #46b450;
}

.swi-toast-success .swi-toast-icon {
    color: #46b450;
}

.swi-toast-info {
    border-left-color: #00a0d2;
}

.swi-toast-info .swi-toast-icon {
    color: #00a0d2;
}

/* Dark mode adjustments */
body.admin-bar.dark-theme #swi-toast-container .swi-toast,
body.dark-mode #swi-toast-container .swi-toast {
    background: rgba(40, 40, 40, 0.95);
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.admin-bar.dark-theme #swi-toast-container .swi-toast-close,
body.dark-mode #swi-toast-container .swi-toast-close {
    color: #aaa;
}

body.admin-bar.dark-theme #swi-toast-container .swi-toast-close:hover,
body.dark-mode #swi-toast-container .swi-toast-close:hover {
    color: #fff;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    #swi-toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
