.modal-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: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-icon.success {
    color: #52c41a;
}

.modal-icon.error {
    color: #ff4d4f;
}

.modal-icon.warning {
    color: #faad14;
}

.modal-icon.info {
    color: #1890ff;
}

.modal-icon.loading {
    color: #1890ff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-actions .btn:hover {
    opacity: 0.9;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.modal-actions .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.modal-actions .btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
}

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

.toast-item.toast-out {
    animation: toastOut 0.3s ease;
}

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

.toast-icon {
    font-size: 20px;
}

.toast-icon.success {
    color: #52c41a;
}

.toast-icon.error {
    color: #ff4d4f;
}

.toast-icon.warning {
    color: #faad14;
}

.toast-icon.info {
    color: #1890ff;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close {
    font-size: 16px;
    color: #999;
    cursor: pointer;
}

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