/* Toast通知样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* 不同类型的提示样式 */
.toast.info {
    background-color: #2196F3;
    border-left: 4px solid #0d47a1;
}

.toast.success {
    background-color: #4CAF50;
    border-left: 4px solid #1b5e20;
}

.toast.warning {
    background-color: #FF9800;
    border-left: 4px solid #e65100;
}

.toast.error {
    background-color: #F44336;
    border-left: 4px solid #b71c1c;
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: #2196f3;
}

.toast.warning {
    background: #ff9800;
}

.toast-content {
    flex-grow: 1;
    margin-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

/* Dialog样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dialog {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.dialog-overlay.show .dialog {
    transform: translateY(0);
}

.dialog-content {
    margin-bottom: 20px;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dialog-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dialog-button.primary {
    background: #2196f3;
    color: white;
}

.dialog-button.primary:hover {
    background: #1976d2;
}

.dialog-button.secondary {
    background: #e0e0e0;
    color: #333;
}

.dialog-button.secondary:hover {
    background: #bdbdbd;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}